Medium
Given an array nums of citation counts sorted in ascending order, return the researcher's h-index: the maximum value h such that at least h papers have at least h citations each. Solve in O(log n).
Input: nums = [0,1,3,5,6] Output: 3
Input: nums = [1,2,100] Output: 2
Input: nums = [0] Output: 0