Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex ...
分类:
其他好文 时间:
2017-09-03 09:54:45
阅读次数:
134
检查回文字符串 如果给定的字符串是回文,返回true,反之,返回false。 如果一个字符串忽略标点符号、大小写和空格,正着读和反着读一模一样,那么这个字符串就是palindrome(回文)。 注意你需要去掉字符串多余的标点符号和空格,然后把字符串转化成小写来验证此字符串是否为回文。 函数参数的值可 ...
分类:
其他好文 时间:
2017-09-03 01:12:57
阅读次数:
245
Where do odds begin, and where do they end? Where does hope emerge, and will they ever break? Given an integer sequence a1,?a2,?...,?an of length n. D ...
分类:
其他好文 时间:
2017-09-02 19:02:49
阅读次数:
120
遍历、深度优先搜索(DFS)、广度优先搜索(BFS)、图的连通分量 ...
分类:
编程语言 时间:
2017-09-02 17:01:39
阅读次数:
270
写在前面 上课第18天,打卡: 《晚风》 - 伍佰 day18作业: 代码实现: ...
分类:
其他好文 时间:
2017-09-02 16:45:43
阅读次数:
170
linux命令处理文本: awk 将文本文件的内容按行读取,并可以指定分割符号,然后打印出具体某列的值。主要是用来处理列的。例如,某个data文件有多行,每行的字段以分号隔开,现要求打印出第3列的信息:cat data | awk -F ';' '{print $3}' 或者 awk -F ';' ...
分类:
移动开发 时间:
2017-09-02 15:46:49
阅读次数:
183
listening speaking reading writing and translating $课文35 捉贼! 355. Roy Trenton used to drive a taxi. 罗伊.特雷顿原是开出租汽车的, 356. A short while ago, however, h ...
分类:
其他好文 时间:
2017-09-02 09:39:15
阅读次数:
178
var arr=[1,2,"a",2,4,1,4,"a",5,6,7,8,"aa","bb","c","a"] // foreach console.log(arr.forEach((item) => { return item "a" // undefined. foreach无返回值,只是遍历执 ...
分类:
Web程序 时间:
2017-09-01 22:17:56
阅读次数:
177
请访问 foreverpiano.cf 有时候比较慢,请耐心等待 博客刚开,画面非常不美观,请谅解 ...
分类:
其他好文 时间:
2017-09-01 21:29:34
阅读次数:
164
1.StringBuilder append(String str) 追加字符串 2.StringBuilder insert(int dstOffser , String str ) 插入字符串(dstOffser 位置的字符后移) 3.StringBuilder delete(int start ...
分类:
编程语言 时间:
2017-09-01 11:53:16
阅读次数:
173