Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2...
分类:
其他好文 时间:
2015-01-16 22:07:21
阅读次数:
139
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].No...
分类:
其他好文 时间:
2015-01-16 20:52:52
阅读次数:
145
Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3].Not...
分类:
其他好文 时间:
2015-01-16 20:47:33
阅读次数:
198
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note...
分类:
其他好文 时间:
2015-01-16 20:42:01
阅读次数:
141
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note...
分类:
其他好文 时间:
2015-01-16 20:36:17
阅读次数:
99
use sales --指定数据库
create table bb --创建bb 这个表
(
ID int not null primary key ,--账号
Moneys money --转账金额
)
--bb表里插入两条数据
insert into bb values('1',2000) --账户 1 里有2000元
insert into bb values('2',3000...
分类:
数据库 时间:
2015-01-16 16:52:13
阅读次数:
184
题目:
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 ...
分类:
编程语言 时间:
2015-01-16 16:46:28
阅读次数:
179
WebApi代码: public class ValuesController : ApiController { Entities db=new Entities(); // GET api/values public IEnum...
Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3].Not...
分类:
其他好文 时间:
2015-01-16 14:33:23
阅读次数:
129
为什么Hash函数 H(k) = k % m中 m 尽量不要为2的幂次
下面的截屏来自CLRS的11章 关于哈希函数的讨论
之前我就一直困惑,为什么
When using the division method, we usually avoid certain values of m. For example, m should...
分类:
其他好文 时间:
2015-01-16 13:06:56
阅读次数:
196