Sponsored
Use these hints if you're stuck. Try solving on your own first.
An easy approach is to sort the array first.
What are the possible values of h-index?
A faster approach is to use extra space.
Solve with full IDE support and test cases