慢慢来
发布时间:2014-08-20 23:01:56
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)Output: 7 -> 0 -> 8点击.........【阅读全文】
发布时间:2014-08-20 21:08:27
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the length of 1.点击(此处)折叠或打开.........【阅读全文】
发布时间:2014-08-18 15:25:33
* 转载请注明, 有错误还望指正先说下表结构上的锁类型: 在建表时可以选择三种表的类型: APL( Allpages locking ): 锁数据页和索引页 DPL( Datapages locking ): 锁数据页 DRL( Dat.........【阅读全文】
发布时间:2014-08-14 11:19:56
**转载请注明**快速排序,又一个divide-and-conquer的实例。虽然最坏情况是O(n^2),但是平均期望效率是O(nlgn),所以在应用中还是比较广泛的。原理:1. 在原数组里取一个点(假如是末尾的),小于它的往前‘放’;大于的往后排;排完了把它放中间。2. 然后把大小两子数组再排序。 * ‘放.........【阅读全文】