Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?判断一...
分类:
其他好文 时间:
2014-07-06 18:10:33
阅读次数:
145
N-Queens IIFollow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.solution:#includ...
分类:
其他好文 时间:
2014-07-06 16:06:08
阅读次数:
198
DescriptionThe cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 #includeint min(int a,int b){ if(a>b) ...
分类:
其他好文 时间:
2014-07-06 14:21:54
阅读次数:
215
2014-07-05 17:11:20.594 SevenStars[2185:60b] nested push animation can result in corrupted navigation bar
2014-07-05 17:11:21.005 SevenStars[2185:60b] Finishing up a navigation transition in an unexp...
分类:
其他好文 时间:
2014-07-06 12:31:20
阅读次数:
198
Elevator
Time Limit: 1000ms Memory limit: 32768K 有疑问?点这里^_^
题目描述
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers de...
分类:
其他好文 时间:
2014-07-06 10:52:11
阅读次数:
188
按他的方法排序,每次移动一个数到顶点,排成需要的序列。
Problem D: ShellSort
He made each turtle stand on another one's back
And he piled them all up in a nine-turtle stack.
And then Yertle climbed up. He sat down on the p...
分类:
其他好文 时间:
2014-07-06 09:15:42
阅读次数:
211
一直在找svn回滚的方法,这个还是很实用的,屡试不爽阿
经常由于坑爹的需求,功能要切回到之前的某一个版本。有两种方法可以实现:
方法1: 用svn merge
1) 先 svn up,保证更新到最新的版本,如20;
2) 然后用 svn log ,查看历史修改,找出要恢复的版本,如10 。如果想要更详细的了解情况,可以使用svn diff -r 10:20 [文件或目录];
3...
分类:
其他好文 时间:
2014-07-05 22:50:24
阅读次数:
351
Java中double类型的数据精确到小数点后两位多余位四舍五入,四种方法一:double f = 111231.5585;BigDecimal b = new BigDecimal(f);double f1 = b.setScale(2,BigDecimal.ROUND_HALF_UP).doub...
分类:
编程语言 时间:
2014-07-05 22:44:31
阅读次数:
325
如果出现:
nested push animation can result in corrupted navigation bar
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
一般这种情况是在自定义的t...
分类:
其他好文 时间:
2014-07-04 00:36:55
阅读次数:
223
以下步骤一定要按照顺序来,我用的系统是
安装QQ
sudo -i
cd /etc/apt/sources.list.d
echo "deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >ia32-libs-raring.list
apt-get up...
分类:
系统相关 时间:
2014-07-04 00:25:31
阅读次数:
334