摘要: Ctrl + ←/→进行逐词移动,相应的,Ctrl + Shift + ←/→进行逐词选择。 Ctrl + ↑/↓移动当前显示区域(相当于鼠标滑轮),Ctrl + Shift + ↑/↓移动当前行 多词选择Ctrl + D选择当前光标所在的词并高亮该词所有出现的位置,再次Ctrl + D选择该词出现 阅读全文
posted @ 2016-02-13 20:07 whu.yt 阅读(122) 评论(0) 推荐(0) 编辑
摘要: python 2.x 中使用 virtualenv virtualenv venv (windows: venv\Scripts\activate) (linux: source venv/bin/activate) deactivate python 3.x 使用内置 py -3 -m venv 阅读全文
posted @ 2016-02-06 21:16 whu.yt 阅读(209) 评论(0) 推荐(0) 编辑
摘要: cmderhttp://conemu.github.io/en/TableOfContents.html设置:win+alt+p分屏: alt+r更改主题:https://github.com/joonro/ConEmu-Color-Themessublimeselect tab by index:... 阅读全文
posted @ 2016-01-04 23:34 whu.yt 阅读(600) 评论(0) 推荐(0) 编辑
摘要: Divide-and-ConquerMaster methodAssumption:all subproblems has same sizeRecurrence FormatThe Master Method formulaRandomized AlgorithmsQuickSort (选取一个p... 阅读全文
posted @ 2015-10-22 11:37 whu.yt 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Find thekth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For exampl... 阅读全文
posted @ 2015-10-21 21:36 whu.yt 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Given an integer array of sizen, find all elements that appear more than⌊ n/3 ⌋times. The algorithm should run in linear time and in O(1) space.如果没有这时... 阅读全文
posted @ 2015-10-21 15:28 whu.yt 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Given an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋times.You may assume that the arr... 阅读全文
posted @ 2015-10-21 14:58 whu.yt 阅读(159) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public ListNode addTwoNumbers(ListNode l1, ListNode l2) { ListNode cur1 = l1; ListNode cur2 = l2; ListNod... 阅读全文
posted @ 2015-10-15 22:20 whu.yt 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 用 Hash Table 实现Time : O(n)Space: O(n)import java.util.HashMap;public class Solution { public int[] twoSum(int[] nums, int target) { HashMap ... 阅读全文
posted @ 2015-10-13 18:42 whu.yt 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Topic :The process abstractionDual-mode operationSafe control transferProcess 是对运行程序的抽象。a process is an instance of a program. (有一个 process control bl... 阅读全文
posted @ 2015-10-10 21:12 whu.yt 阅读(230) 评论(0) 推荐(0) 编辑