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
一个加解密类。如果你想在用户忘记密码时为他或她找回原来的密码,那么这个类是个好用的工具用户注册的密码一般不会明文保存,总得加个密先。最简单的当然是在数据库sql语句中调用md5函数加密用户密码。这里介绍一个加解密类。如果你想在用户忘记密码时为他或她找回原来的密码,那么这个类是个好用的工具。当然,这个...
分类:
Web开发 时间:
2014-02-17 17:33:45
收藏:
0 评论:
0 赞:
0 阅读:
385
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
假设 obj 为某个 HTML 控件obj.offsetTop 指 obj 相对于版面或由
offsetParent 属性指定的父坐标的计算上侧位置,整型,单位像素。obj.offsetLeft 指 obj 相对于版面或由 offsetParent
属性指定的父坐标的计算左侧位置,整型,单位像素。o...
分类:
其他 时间:
2014-02-17 17:29:21
收藏:
0 评论:
0 赞:
0 阅读:
337
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
这次题目好难读各种专业词汇。。。把做出来的题贴一下把。Problem AGenetic
Engineering思路:遍历一遍然后求出长度为奇数个的一样字母长度,即为答案。代码如下: 1
/************************************************** 2 * A...
分类:
其他 时间:
2014-02-17 17:22:01
收藏:
0 评论:
0 赞:
0 阅读:
375
链表由一系列不必在内存中相连的结构构成,这些对象按线性顺序排序。每个结构含有表元素和指向后继元素的指针。最后一个单元的指针指向NULL。为了方便链表的删除与插入操作,可以为链表添加一个表头。删除操作可以通过修改一个指针来实现。插入操作需要执行两次指针调整。1.
单向链表的实现1.1 Node实现 每...
分类:
编程语言 时间:
2014-02-17 17:19:05
收藏:
0 评论:
0 赞:
0 阅读:
465
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
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
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/moudles/admin/templates/category_add.tpl.php,打开文件 将第80行的代码 替换为
更新下缓存就...
分类:
Web开发 时间:
2014-02-17 17:07:21
收藏:
0 评论:
0 赞:
0 阅读:
496
为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
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
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
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 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
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
元素位置重叠的背景常识(x)html文档中的元素默认处于普通流(normal
flow)中,也就是说其顺序由元素在文档中的先后位置决定,此时一般不会产生重叠(但指定负边距可能产生重叠)。当我们用css为某个元素指定float浮动或者position定位后,元素的定位将会依情况发生如下改变:1.
指定...
分类:
其他 时间:
2014-02-17 16:36:33
收藏:
0 评论:
0 赞:
0 阅读:
463
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