
bucket sort
文章平均质量分 80
chuandalishuo
这个作者很懒,什么都没留下…
展开
-
164. Maximum Gap
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 if the array contains less than 2 elements原创 2016-11-13 05:00:17 · 247 阅读 · 0 评论 -
274,275. H-Index I, II
Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.According to the definition of h-index on Wikipedia: "A原创 2016-12-08 13:09:40 · 239 阅读 · 0 评论