Given an array of integers, every element appears
three times except for one. Find that single one. Note: Your algorithm should
have a linear runtime ...
分类:
其他好文 时间:
2014-05-27 00:10:26
阅读次数:
319
本文原始路径:
https://www.zybuluo.com/Ivony/note/14074前言DbUtility v3 是一个开源的轻量级数据库访问框架,源代码通过
Apache 协议发布,可以用于商业用途。最新的版本可以通过 NuGet 进行下载,项目及源代码下载地址:https://git...
分类:
数据库 时间:
2014-05-26 13:50:02
阅读次数:
361
1、static:静态的静态对象不属于对象,它只属于一个类 class Person{ static
$type="小孩"; public $name; public $pwd;
}2、调用静态对象:person::$type类本身调用静态对象:self::$type3、extends:继承
分类:
其他好文 时间:
2014-05-26 13:12:08
阅读次数:
196
1.取消选中这行[tableView deselectRowAtIndexPath:indexPath
animated:YES];2.去掉tableView的分割线(ios7)self.tableView.separatorStyle =
UITableViewCellSeparatorStyle...
分类:
其他好文 时间:
2014-05-26 12:47:25
阅读次数:
253
SELsel=@selector(start:);//指定actionif([objrespondsToSelector:sel]){//判断该对象是否有相应的方法
[objperformSelector:selwithObject:self];//调用选择器方法 }
分类:
其他好文 时间:
2014-05-26 08:14:11
阅读次数:
207
一、定义一个只包含一个成员变量a、一个构造函数、一个get、一个set函数的类class
ClassA(object): def __init__(self): self._a = 0 def get_a(self): return self._a
def set_a(...
分类:
编程语言 时间:
2014-05-26 07:26:27
阅读次数:
287
CGSize rect =
[info.contentsizeWithFont:self.contentLabel.fontconstrainedToSize:CGSizeMake(self.contentLabel.frame.size.width,
MAXFLOAT)]; self.cont.....
分类:
其他好文 时间:
2014-05-26 07:09:59
阅读次数:
217
题目:
Given an array S of n integers, are there elements a, b, c in S such that a + b + c =
0? Find all unique
triplets in the array which gives the sum of zero.
Note:
Elements...
分类:
其他好文 时间:
2014-05-25 00:39:37
阅读次数:
343
概念理解:
反射是指一类应用,它们能够自描述和自控制。也就是说,这类应用通过采用某种机制来实现对自己行为的描述(self-representation)和检测(examination),并能根据自身行为的状态和结果,调整或修改应用所描述行为的状态和相关的语义。
Java中的反射是一个强大的工具,他能够创建灵活的代码,这些代码可以在运行时装配,无需在组件之间进...
分类:
编程语言 时间:
2014-05-24 23:03:49
阅读次数:
266
【题目】
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
For example:
Input: ["tea","and","ate","eat","den"]
Output: ["tea","ate","eat"]
【题意】
anagrams指的是颠倒字母顺序构成的单词,以tea为例,则与它an...
分类:
其他好文 时间:
2014-05-24 18:36:01
阅读次数:
317