275 H-Index II
275. H-Index II
1. Question
Follow up for H-Index :What if thecitations
array is sorted in ascending order? Could you optimize your algorithm?
2. Implementation
(1) Binary Search
3. Time & Space Complexity
Binary Search: 时间复杂度O(logn), 空间复杂度O(1)
Last updated