In this problem, we are asked to divide two integers. However, we are not allowed to use division, multiplication and mod operations. So, what else ca...
分类:
其他好文 时间:
2015-06-06 23:28:41
阅读次数:
170
This problem is somewhat tricky at first glance. However, the final implementation is fairly straight-forward.The basic idea is, visiting every possib...
分类:
其他好文 时间:
2015-06-04 11:20:25
阅读次数:
166
Last three days, I want to install devstack on my virtual machine on Vmware Workstation.The VM'system is Ubuntu14.04. However,i met too many problem t...
分类:
其他好文 时间:
2015-06-03 17:16:40
阅读次数:
268
To be honest, this problem is designed to let you use stacks. However, I don't. In fact, you only need to keep a flagand switch it between falseandtru...
分类:
其他好文 时间:
2015-06-03 00:49:58
阅读次数:
232
This problem seems to be tricky at first glance. However, if you know Morris traversal, it is just the preorder case of Morris traversal and the code ...
分类:
其他好文 时间:
2015-06-03 00:42:17
阅读次数:
136
This problem is a little tricky at first glance. However, if you have finished the "House Robber" problem, this problem can simply bedecomposed into t...
分类:
其他好文 时间:
2015-06-03 00:42:11
阅读次数:
231
Well, there is a nice and succinct solution to this problem using math skills. However, personally I guess it would be safer to use DP in a coding int...
分类:
其他好文 时间:
2015-06-03 00:42:00
阅读次数:
157
Well, this problem has a naive solution, which is to sort the array in descending order and return thek-1-th element. However, sorting algorithm gives...
分类:
其他好文 时间:
2015-06-03 00:38:52
阅读次数:
230
Euler discovered the remarkable quadratic formula:
n² + n + 41
It turns out that the formula will produce 40 primes for the consecutive values n = 0 to 39. However, when n = 40, 402 + 40 + 41 = 40...
分类:
其他好文 时间:
2015-06-02 11:16:49
阅读次数:
139
占位...note:1,remide you path that file to be upload in,however,you can press F5 to verify your script2,not remeber yet3,last,i want to say that all too...
分类:
其他好文 时间:
2015-05-26 23:06:41
阅读次数:
195