像这种DFS的题目,常见的写法无外乎两种,使用recursion,
或者用Stack。本文采用了stack的方式。做完后积累的经验有:像这种在一个ArrayList里面罗列可能的path的题目,recursion的参数一般包括:包含最终结果的集合(ArrayList),input(String),递...
分类:
其他好文 时间:
2014-06-13 08:34:10
阅读次数:
220
select mtrh.request_number 发货单号,
mmt.transaction_date 发货时间, oola.creation_date 下单时间, nvl(fu.description,
fu.user_name) 下单人员, ott.name 订单类型, qp.name 价目...
分类:
数据库 时间:
2014-06-13 00:53:06
阅读次数:
1243
小端存储--低内存低字节87654321字节或半字节的最低位字节(LowestSignificantBit,LSB)存放于内存最低位字节地址上。即最低地址存放的最低字节,为PowerPC,Intelx86系列等采用。inta=0x12345678;78为低字节12为高字节voidfFun(){int...
分类:
其他好文 时间:
2014-06-12 19:14:32
阅读次数:
225
一扩展访问控制列表的配置1:创建ACLRouter(config)#access-listaccess-list-number{permit|deny}protocol{sourcesource-wildcarddestinationdestination-wildcard}[operatoroperan]命令参数详细说明:access-list-number:访问控制列表表号,对于扩展ACL来说,是100—199的一个..
分类:
其他好文 时间:
2014-06-10 22:22:39
阅读次数:
469
SQL语句创建数据库:create table student(id int not null
primary key,number nvarchar not null,name nvarchar not null,brithday DateTime
default getdate(), adres...
分类:
数据库 时间:
2014-06-10 19:48:24
阅读次数:
284
1 class Solution { 2 public: 3 int
singleNumber(int A[], int n) { 4 int bits = sizeof(int)*8; 5 int result=0; 6
for(int i...
分类:
移动开发 时间:
2014-06-10 19:45:48
阅读次数:
334
The gray code is a binary numeral system where
two successive values differ in only one bit.Given a non-negative
integernrepresenting the total number...
分类:
其他好文 时间:
2014-06-10 19:38:39
阅读次数:
199
题目
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement t...
分类:
其他好文 时间:
2014-06-10 17:32:23
阅读次数:
174
原题地址:https://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/题意:Given
a digit string, return all possible letter combinations that the ...
分类:
编程语言 时间:
2014-06-10 16:40:57
阅读次数:
223
本地zookeeper安装(win7)下载zookeeper-3.3.6.zip文件解压zookeeper-3.3.6.zip文件到d:盘在D:\zookeeper-3.3.6\conf下增添
zoo.cfgcopy此zoo_sample.cfg生成zoo.cfg文件# The number of ...