H-Index
Intuition My first thought was to sort the array, and return the first element where count < citations[i]. However this proved to be wrong, since this would return the first element, and after sorting the array we want to return the last element where count < citations[i] is True. Approach Sort the array, then iterate over it storing the count where count < citations[i]. Complexity Time complexity: O(n log n) since we have the sort function ...