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 ...
分类:
其他好文 时间:
2014-10-05 23:28:39
阅读次数:
357
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,#,#,15,7},
...
分类:
其他好文 时间:
2014-10-05 23:07:59
阅读次数:
214
Code Path:
https://github.com/bluesilence/Lisp/blob/master/clojure/projects/room-escape/src/room_escape/script.clj
Extract Story to TXT
In order to move the story from .clj into .txt, I lever...
分类:
Web程序 时间:
2014-10-05 17:36:38
阅读次数:
214
DocumentRoot "E:\project\weigouwu" ServerName wg.cn Options FollowSymLinks AllowOverride None Order allow,deny ...
分类:
其他好文 时间:
2014-10-05 16:13:18
阅读次数:
193
declare @myOrder intset @myOrder=3select * from Students order by case @myOrder when 1 then chinese when 2 then math when 3 then englishendde...
分类:
数据库 时间:
2014-10-05 14:47:48
阅读次数:
208
select top 3 * from Students order by NEWID()ps:newid()的返回值 是uniqueidentifier,newid()在扫描每条记录的时候都生成一个值, 而生成的值是随机的, 没有大小写顺序. 所以最终结果再按这个排序, 排序的结果当然就是无序的了
分类:
数据库 时间:
2014-10-05 13:08:28
阅读次数:
233
large skip 在为数据分页时,一般要skip多少记录并limit多少记录,例如在MySQL中: SELECT * FROM large_table ORDER BY `id` LIMIT 10000, 30 这个过程是很慢的,因为数据库需要从第一个记录开始扫描到第10000个...
分类:
数据库 时间:
2014-10-04 07:22:16
阅读次数:
258
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
For example,
I...
分类:
其他好文 时间:
2014-10-03 22:24:55
阅读次数:
273
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,#,#,15,7},
...
分类:
其他好文 时间:
2014-10-03 19:41:45
阅读次数:
189
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* Lis...
分类:
其他好文 时间:
2014-10-03 17:21:45
阅读次数:
167