- 博客(2)
- 问答 (2)
- 收藏
- 关注
原创 leetcode No215. Kth Largest Element in an Array
QuestionFind the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For example, Given [3,2,1,5,6,4] and k = 2, return
2017-02-22 17:54:35 581
原创 leetcode No172. Factorial Trailing Zeroes
QuestionGiven an integer n, return the number of trailing zeroes in n!. 求n的阶乘n!末尾有多少个0AlgorithmN!=K*10^M,且K不能被10整除,那么N!末尾有M个0。 对N!进行质因数分解,N!=(2^X)*(3^Y)^(5^Z)…,由于10=2*5,所以M只和X和Z有关,M=min(X,Z)。因为能被2整除的
2017-02-20 11:47:54 448
空空如也
hexo 搭建博客-hexo new出错
2017-03-16
stable_partition怎么实现的
2016-10-08
TA创建的收藏夹 TA关注的收藏夹
TA关注的人