POJ2785 4 Values whose Sum is 0(二分)...
分类:
其他好文 时间:
2015-01-10 19:47:18
阅读次数:
187
根据google官方的文档(http://developer.android.com/reference/android/os/Bundle.html)Bundle类是一个key-value对,“A mapping from String values to various Parcelable t...
分类:
移动开发 时间:
2015-01-10 19:37:23
阅读次数:
250
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary ...
分类:
其他好文 时间:
2015-01-10 18:17:08
阅读次数:
177
Binary Tree Zigzag Level Order TraversalGiven a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then...
分类:
其他好文 时间:
2015-01-10 16:35:50
阅读次数:
155
题目:Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For e...
分类:
编程语言 时间:
2015-01-09 23:44:17
阅读次数:
237
CSS Specificity As mentioned above, CSS styles follow an order of specificity and point values to determine(确定) when styles override(覆盖) one another or take precedence(优先). Nettuts recently h...
分类:
Web程序 时间:
2015-01-09 22:32:39
阅读次数:
386
The problem:Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.My analysis:The problem is easy at some extent,...
分类:
其他好文 时间:
2015-01-09 12:15:07
阅读次数:
108
大概看了下网上的解决方法,发现在我的项目中不能解决问题,于是我自己去慢慢查找问题,后来发现原来是我update项目的时候,这个project.properties文件出现的问题,但是因为没有报错,所以比较难找这个问题。下面是我update后project.properties这个问题出现的部分,导致这个问题的原因是我本地项目的库引用路径和svn上的不一样,所以导致了这个问题。
---------...
分类:
其他好文 时间:
2015-01-09 10:49:27
阅读次数:
181
1.先模拟一个死锁: 1 CREATE TABLE Lock1(C1 int default(0)); 2 CREATE TABLE Lock2(C1 int default(0)); 3 INSERT INTO Lock1 VALUES(1); 4 INSERT INTO Lock2 VALUES...
分类:
数据库 时间:
2015-01-08 17:28:08
阅读次数:
240
//创建数据库createtableifnotexistsuser(useridintegerprimarykeyautoincrement,usernamevarchar(128),classidinteger)//插入数据库对象insertintouser(username,classid)values(‘王五‘,3)//按格式显示数据库selectuseridas用户序列号,usernameas用户名,classidas班级号fromus..
分类:
数据库 时间:
2015-01-08 15:43:37
阅读次数:
152