H-index of instance ratings
Given the integer ratings of a set of instances, return the largest integer k such that at least k instances have a rating of k or more (return 0 when no such k exists). Do it faster than trying every k, by sorting or by counting.
No answer yet. Write the first one; the best answer gets endorsed.
