Factorial Trailing Zeroes
Total Accepted: 28
Total Submissions: 69
Given an integer n, return the number of trailing zeroes in n!.
Note: Your solution should be in polynomial time complexity....
分类:
其他好文 时间:
2014-12-30 10:05:31
阅读次数:
190
SubsetsGiven 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...
分类:
其他好文 时间:
2014-12-29 22:52:49
阅读次数:
198
Subsets IIGiven a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must be in non-descend...
分类:
其他好文 时间:
2014-12-29 22:48:25
阅读次数:
240
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,2,3].
Note: Recursive soluti...
分类:
其他好文 时间:
2014-12-29 21:34:20
阅读次数:
196
在html的head头内如下写法,节选自http://www.xingzai.org/html-note/meta-tag-usage-order.html:其中最后一行是永远以最新的IE版本模式来显示网页的。另外加上Emulate模式Emulate模式后则更重视(细心的人会注意到,用IE9去访问带...
分类:
Web程序 时间:
2014-12-29 15:16:26
阅读次数:
173
3SumGiven an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:El...
分类:
其他好文 时间:
2014-12-29 13:41:38
阅读次数:
139
3SumGiven an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:El...
分类:
其他好文 时间:
2014-12-28 20:43:43
阅读次数:
117
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
这个题目的解法与LeetCode[Tree]: Construct Binary Tree from Pre...
分类:
其他好文 时间:
2014-12-28 09:15:15
阅读次数:
165
Functionals“To become significantly more reliable, code must become more transparent. In particular, nested conditions and loops must be viewed with g...
分类:
其他好文 时间:
2014-12-27 16:05:34
阅读次数:
283
原文:给Notepad++ 加右键菜单带图标从网上下载下来的Notepad++
http://download.tuxfamily.org/notepadplus/6.3.3/npp.6.3.3.bin.zip
解压之后,可以直接使用, 但是右键菜单中没有它,非常不方便,
本文使用三种方式给Note...
分类:
其他好文 时间:
2014-12-27 11:19:17
阅读次数:
178