首页 > 全部
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他   时间:2014-02-17 17:44:01    收藏:0  评论:0  赞:0  阅读:391
php加密解密实用类
一个加解密类。如果你想在用户忘记密码时为他或她找回原来的密码,那么这个类是个好用的工具用户注册的密码一般不会明文保存,总得加个密先。最简单的当然是在数据库sql语句中调用md5函数加密用户密码。这里介绍一个加解密类。如果你想在用户忘记密码时为他或她找回原来的密码,那么这个类是个好用的工具。当然,这个...
分类:Web开发   时间:2014-02-17 17:33:45    收藏:0  评论:0  赞:0  阅读:385
php实现aes加密类
php实现的aes加密类,代码中有使用方法。bit = $bit;$this->key = $key;$this->iv = $iv;$this->mode = $mode;switch($this->bit) {case 192:$this->cipher = MCRYPT_RIJNDAEL_19...
分类:Web开发   时间:2014-02-17 17:32:17    收藏:0  评论:0  赞:0  阅读:432
运行环境不一致导致出错的一点启发
今天要把开发的项目导出来拿到客户那边去部署运行一下。我们平时开发环境用的IDE是IntelliJ IDEA,智能化程度比较高。 代码写好后,通过IDEA启动tomcat运行是完全没问题的,然后我关闭IDEA,把这个项目手动复制到tomcat的webapp目录下,再在tomcat的bin目录启动tom...
分类:其他   时间:2014-02-17 17:30:49    收藏:0  评论:0  赞:0  阅读:412
offsetTop offsetLeft offsetWidth offsetHeight
假设 obj 为某个 HTML 控件obj.offsetTop 指 obj 相对于版面或由 offsetParent 属性指定的父坐标的计算上侧位置,整型,单位像素。obj.offsetLeft 指 obj 相对于版面或由 offsetParent 属性指定的父坐标的计算左侧位置,整型,单位像素。o...
分类:其他   时间:2014-02-17 17:29:21    收藏:0  评论:0  赞:0  阅读:337
Rotate List
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL. 1 pu...
分类:其他   时间:2014-02-17 17:24:57    收藏:0  评论:0  赞:0  阅读:224
Codeforces Rockethon 2014 解题报告
这次题目好难读各种专业词汇。。。把做出来的题贴一下把。Problem AGenetic Engineering思路:遍历一遍然后求出长度为奇数个的一样字母长度,即为答案。代码如下: 1 /************************************************** 2 * A...
分类:其他   时间:2014-02-17 17:22:01    收藏:0  评论:0  赞:0  阅读:375
Python数据结构——链表的实现
链表由一系列不必在内存中相连的结构构成,这些对象按线性顺序排序。每个结构含有表元素和指向后继元素的指针。最后一个单元的指针指向NULL。为了方便链表的删除与插入操作,可以为链表添加一个表头。删除操作可以通过修改一个指针来实现。插入操作需要执行两次指针调整。1. 单向链表的实现1.1 Node实现 每...
分类:编程语言   时间:2014-02-17 17:19:05    收藏:0  评论:0  赞:0  阅读:465
LRU
import java.util.*;/* * we are using linked list with hashmap for Lru.Reason behind this is ,since HashMap is able to store data and key but * how do ...
分类:其他   时间:2014-02-17 17:20:33    收藏:0  评论:0  赞:0  阅读:427
Word Ladder I ,II 解题思路
Given two words (startandend), and a dictionary, find the length of shortest transformation sequence fromstarttoend, such that:Only one letter can be ...
分类:其他   时间:2014-02-17 17:13:13    收藏:0  评论:0  赞:0  阅读:428
switch使用方法之一周食谱例
1 /* 2 Name:switch使用方法之一周食谱例 3 Copyright: By.不懂网络 4 Author: Yangbin 5 Date:2014年2月17日 03:52:53 6 Description: 7 */ 8 # include 9 int main(void)10 {11 ...
分类:其他   时间:2014-02-17 17:11:45    收藏:0  评论:0  赞:0  阅读:445
phpcms v9修改栏目描述的多行文本为编辑器方法
phpcms v9在添加栏目的时候,栏目描述为多行文本,无法满足有图片,以及格式的修改调整,那么仿站网今天告诉大家如何将他改为编辑器,方法如下 找到phpcms/moudles/admin/templates/category_add.tpl.php,打开文件 将第80行的代码 替换为 更新下缓存就...
分类:Web开发   时间:2014-02-17 17:07:21    收藏:0  评论:0  赞:0  阅读:496
PHPCMS v9栏目添加字段及描述编辑器修改方法
为PHPCMS v9栏目添加字段和把描述的textarea编辑器变成fceditor编辑器的方法。如下: 1. 添加数据库字段:description1,添加位置:v9_catetory表 2. 在category_add.tpl.php中把 变成Fceditor的小型编辑器 3. 添加新字段des...
分类:Web开发   时间:2014-02-17 17:05:53    收藏:0  评论:0  赞:0  阅读:498
3Sum Closest
Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m...
分类:其他   时间:2014-02-17 17:02:57    收藏:0  评论:0  赞:0  阅读:362
Spiral Matrix II
Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri...
分类:其他   时间:2014-02-17 16:52:41    收藏:0  评论:0  赞:0  阅读:362
Populating Next Right Pointers in Each Node II
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:其他   时间:2014-02-17 16:45:21    收藏:0  评论:0  赞:0  阅读:342
Reverse Linked List II
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:其他   时间:2014-02-17 16:46:49    收藏:0  评论:0  赞:0  阅读:361
Distinct Subsequences
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:其他   时间:2014-02-17 16:43:53    收藏:0  评论:0  赞:0  阅读:330
元素重叠及position定位的z-index顺序
元素位置重叠的背景常识(x)html文档中的元素默认处于普通流(normal flow)中,也就是说其顺序由元素在文档中的先后位置决定,此时一般不会产生重叠(但指定负边距可能产生重叠)。当我们用css为某个元素指定float浮动或者position定位后,元素的定位将会依情况发生如下改变:1. 指定...
分类:其他   时间:2014-02-17 16:36:33    收藏:0  评论:0  赞:0  阅读:463
ZigZag Conversion
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:其他   时间:2014-02-17 16:32:09    收藏:0  评论:0  赞:0  阅读:355
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!