自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Dufre

Stay Hungry,Stay Foolish

  • 博客(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

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除