题目
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n =
4,
return 1->4->3->2->5->NULL.
Note:
Given m,...
分类:
其他好文 时间:
2014-06-11 06:07:11
阅读次数:
392
Given an array of integers, every element
appears twice except for one. Find that single one.Note: Your algorithm should
have a linear runtime complex...
分类:
其他好文 时间:
2014-06-10 21:27:22
阅读次数:
284
这里给出大部分主要的代码
联系人模型对象:
#import "NJContatc.h"
@implementation NJContatc
- (void)encodeWithCoder:(NSCoder *)aCoder
{
[aCoder encodeObject:self.name forKey:@"name"];
[aCoder encodeObject:s...
分类:
其他好文 时间:
2014-06-10 16:00:44
阅读次数:
245
NSMutableArray *textFieldArray = [NSMutableArray
arrayWithCapacity:5]; for (UIView *textField in self.view.subviews) { if
([textFiel...
分类:
其他好文 时间:
2014-06-10 12:46:42
阅读次数:
224
static:: 使我们不再需要使用 self:: 和 parent::
。当希望指向最终的实现功能的类时,就可以使用static,这个限定符会在代码执行之前立即计算出继承层次结构上最后那个类的成员。这一过程被称作延迟绑定。
分类:
Web程序 时间:
2014-06-10 11:28:57
阅读次数:
287
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is...
分类:
其他好文 时间:
2014-06-10 10:52:03
阅读次数:
180
戳我去解题Given an array of strings, return all
groups of strings that are anagrams.Note: All inputs will be in
lower-case.Anagram(回文构词法)是指打乱字母顺序从而得到新的单词回文...
分类:
其他好文 时间:
2014-06-10 08:44:13
阅读次数:
275
JQuery并没有简单的使用一个Array来存储回调函数,而是通过JQuery.Callbacks(options)返回一个self对象,此对象可以动态的add,remove和fire回调函数队列.此函数需要说明的是options参数,它是一个string,这个string由四个参数任意组合而成
options:
once:回调函数只执行一次
memory:调用add时触发回调函数使用fir...
分类:
Web程序 时间:
2014-06-10 07:31:07
阅读次数:
281
静态成员是一种类变量,可以把它看成时属于整个类而不是属于类的某个实例。与一般的实例变量不同的是,静态成员只保留一个变量值,而这个变量值对所有的实例都是有效的,也就是说,所有的实例共享这个成员。$this只表示类的当前实例,而
self:: 表示的是类本身,在类之外的代码中不能使用这个操作符,而且它不...
分类:
Web程序 时间:
2014-06-09 19:56:55
阅读次数:
296
import sysfrom PyQt4 import QtGuifrom PyQt4 import
QtCore#Icon继承了QtGui.QWidget这个类class Icon(QtGui.QWidget): def
__init__(self,parent=None): ...
分类:
其他好文 时间:
2014-06-09 15:10:52
阅读次数:
227