Summary
wo111180611
这个作者很懒,什么都没留下…
展开
-
Math Summary
"1 + 1" = 2 " 2-1 + 2 " = 3 "(1+(4+5+2)-3)+(6+8)" = 23 numbers could be more than one digit!!!原创 2016-05-25 07:42:28 · 194 阅读 · 0 评论 -
LInkedList
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Given 1->原创 2016-05-18 07:28:36 · 277 阅读 · 0 评论 -
Hash Table
How to Iterate Over a Map in Java原创 2016-05-12 06:17:47 · 216 阅读 · 0 评论 -
Binary Search Summary
Find a place to insert an element [1, 3, 5, 7, 9] insert 4 public int find(int start, int end, int key, int[] sums){ while(start <= end){ int mid = (start + end) / 2;原创 2016-05-08 06:49:30 · 234 阅读 · 0 评论 -
Array Summary
The order of elements can be changed. It doesn't matter what you leave beyond the new length. You can just copy the elements instead of swapping.原创 2016-05-06 04:00:31 · 205 阅读 · 0 评论 -
Ten sort algorithms in interviews
http://www.admin10000.com/document/7042.html转载 2016-04-04 10:58:02 · 173 阅读 · 0 评论 -
Useful methods
int -> Integer new Integer(i); Calculate the number of digits in a number: String.valueOf(i).length() char -> string String.valueOf(char c) Character.toLowerCase(char c) Character.toUppe原创 2016-03-30 01:12:46 · 211 阅读 · 0 评论