275. H-Index II

Follow up for H-Index: What if the citations array is sorted in ascending order? Could you optimize your algorithm?web s思路: 1. 排过序的,就更好办了! 2. 不对,确定不是o(n)这么便宜的事。排序,又都是正数,还不得用binary search啊。绝了! 3. debug
相关文章
相关标签/搜索