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 exam...
分类:
其他好文 时间:
2014-09-06 12:20:43
阅读次数:
223
Problem B:Cuckoo for HashingAn integer hash table is a data structure that supports insert, delete and lookup of integer values inconstant time. Tradi...
分类:
其他好文 时间:
2014-09-05 21:07:02
阅读次数:
275
Android提供了3种数据保存方式:SharePreference、文件与数据库。
1,SharePreference
如果想保存一个相对较小的key-values集合,可以使用 SharedPreferences
API. SharedPreferences对象指向包含key-value对的文件,并且提供简单的读写方式。每个SharedPreferences文件均由框架管理,私人或共享...
分类:
移动开发 时间:
2014-09-05 19:57:01
阅读次数:
259
Binary Tree Level Order Traversal II
Total Accepted: 16983 Total
Submissions: 54229My Submissions
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie...
分类:
其他好文 时间:
2014-09-05 18:22:41
阅读次数:
212
Binary Tree Level Order Traversal
Total Accepted: 20571 Total
Submissions: 66679My Submissions
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left t...
分类:
其他好文 时间:
2014-09-05 18:22:21
阅读次数:
271
Binary Tree Postorder Traversal
Total Accepted: 28560 Total
Submissions: 92333My Submissions
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given...
分类:
其他好文 时间:
2014-09-05 16:09:01
阅读次数:
172
CRUD增删改查DCL数据控制语言:备份,grantDML数据操作语言:CRUDDDL数据定义语言:createdropalter自增长列不能赋值增:Insertinto表名values(‘’,’’,’’,’’,’’)--into可以省略删:Deletefrom表名(有日志)(慢)truncatet...
分类:
数据库 时间:
2014-09-04 23:37:00
阅读次数:
448
DDL(数据定义语言) Create、Drop、AlterDML(数据操纵语言) CRUD(增加(Create)、读取(Retrieve)(重新得到数据)、更新(Update)和删除(Delete))DCL(数据控制语言)增加数据 insert into 表 values ('值') --i...
分类:
其他好文 时间:
2014-09-04 23:30:40
阅读次数:
241
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:
其他好文 时间:
2014-09-04 18:52:29
阅读次数:
181
drop table t1;
create table t1 (c1 char(2) primary key, c2 char(1) not null);
insert into t1 values ('A ','A');
select t1.c1 from t1
where t1.c1 in (select c2 from t1 union all select '0'||c2 c2 fr...
分类:
数据库 时间:
2014-09-04 16:58:39
阅读次数:
245