Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?根据回文串的特点,我们需要比较对应位置的值是否相等,那么我们首先需要找到...
分类:
其他好文 时间:
2015-09-08 12:22:57
阅读次数:
252
今天碰到了个郁闷的问题,svn执行clean up命令时报错“Previous operation has not finished; run 'cleanup' if it was interrupted”。无论你到那个父层次的目录执行“clean up“,都是报一样的错。执行cleanup时候,...
分类:
其他好文 时间:
2015-09-08 12:12:21
阅读次数:
118
题目大意:有一个木棒,按照顺序摆放,求出去上面没有被别的木棍压着的木棍.....分析:可以维护一个队列,如果木棍没有被压着就入队列,如果判断被压着,就让那个压着的出队列,最后把这个木棍放进队列,不过速度并不快,枚举才是最快的......据说是任意时刻没有超过1000个top sticks.....很...
分类:
其他好文 时间:
2015-09-08 00:31:13
阅读次数:
121
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2015-09-07 21:01:54
阅读次数:
186
1、webstorm快捷键:IntelliJ-Idea 的快捷键Ctrl+/或Ctrl+Shift+/注释(//或者/*…*/)Shift+F6重构-重命名Ctrl+X删除行Ctrl+D复制行Ctrl+G查找行Ctrl+Shift+Up/Down代码向上/下移动。F2或Shift+F2高亮错误或警告...
分类:
Web程序 时间:
2015-09-07 20:57:52
阅读次数:
135
spark 恢复机制使用的监控 https://mmonit.com/monit/ Up and running in 15 minutes! With all features needed for system monitoring and error recovery. It‘s like having a watchdog with a toolbox on you...
分类:
其他好文 时间:
2015-09-07 18:06:11
阅读次数:
130
原文 Mrs. Anne Sterling did not think of the risk she was taking when ran through a forest after two men. They had rushed up to her while she was having a picnic at the edge of a forest with her ch...
分类:
其他好文 时间:
2015-09-07 14:32:21
阅读次数:
222
Problem DescriptionTom and Jerry are playing a game with tubes and pearls. The rule of the game is:1) Tom and Jerry come up together with a number K.2...
分类:
其他好文 时间:
2015-09-07 12:32:22
阅读次数:
255
转:深入理解递归函数的调用过程下面是个关于递归调用简单但是很能说明问题的例子: 1 /*递归例子*/ 2 #include 3 void up_and_down(int); 4 int main(void) 5 { 6 up_and_down(1); 7 return 0; 8 } 9 ...
分类:
其他好文 时间:
2015-09-07 11:00:07
阅读次数:
232
Linux网络常用命令在Linux系统管理中网络管理肯定是经常打交道的,为了加深印象这里写几个常用的命令和介绍.ifconfig、route、ip、netstat、ss、nmcli和编辑网卡配置文件.ifconfig:ifconfig接口[aftype]
options|address...常用参数:up启动指定网络设备/网卡。down关闭指定网络..
分类:
其他好文 时间:
2015-09-06 18:39:03
阅读次数:
230