1、webstorm快捷键:IntelliJ-Idea 的快捷键Ctrl+/或Ctrl+Shift+/注释(//或者/*…*/)Shift+F6重构-重命名Ctrl+X删除行Ctrl+D复制行Ctrl+G查找行Ctrl+Shift+Up/Down代码向上/下移动。F2或Shift+F2高亮错误或警告...
分类:
Web程序 时间:
2015-02-28 00:17:07
阅读次数:
186
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 sec...
分类:
其他好文 时间:
2015-02-27 21:34:28
阅读次数:
222
https://oj.leetcode.com/problems/binary-tree-level-order-traversal-ii/Given a binary tree, return thebottom-up level ordertraversal of its nodes' valu...
分类:
其他好文 时间:
2015-02-27 14:53:37
阅读次数:
133
http://askubuntu.com/questions/26632/how-to-install-eclipseHow to install Eclipse?up vote113down votefavorite103I want to install the latest version o...
分类:
系统相关 时间:
2015-02-27 13:18:17
阅读次数:
379
Rotate an array of n elements to the right by k steps.
For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].
Note: Try to come up as many solutions as you c...
分类:
其他好文 时间:
2015-02-26 11:49:09
阅读次数:
104
题目Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].Note:
Try to come up as many solutions as you can, th...
分类:
其他好文 时间:
2015-02-25 23:46:18
阅读次数:
157
Problem Description
The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He ...
分类:
其他好文 时间:
2015-02-25 09:11:35
阅读次数:
172
Implementint sqrt(int x).Compute and return the square root ofx.求平方根, 用的是二分法. 从 0 - x, 使用二分的思想啊~为了防止overflow, 把low和up用long。然后return int类型就行了~据说还有一种牛顿迭...
分类:
其他好文 时间:
2015-02-25 08:01:21
阅读次数:
143
题目:Sum It UpTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 140 Accepted Submission(s): 73 Problem DescriptionGiven a specified total t and a list ...
分类:
其他好文 时间:
2015-02-24 19:55:48
阅读次数:
217
大致题意:给出矩阵左上角和右下角坐标,矩阵里的元素 1变0 ,0 变1,然后给出询问,问某个点是多少.
每次变化操作相当于把区间上的值全加一,然后对查询的结果模二即可
这是树状数组第二种模式的应用:
Up()表示修改区间,Down()表示求单点的值。
Down()表示修改区间,Up()表示求单点的值。
http://www.topcoder.co...
分类:
编程语言 时间:
2015-02-24 15:12:09
阅读次数:
240