Friday, April 22, 2016

LeetCode Q275: H-Index II

Follow up for H-Index: What if the citations array is sorted in ascending order? Could you optimize your algorithm?
Hint:
  1. Expected runtime complexity is in O(log n) and the input is sorted.
Solution:

No comments:

Post a Comment