H-index of instance ratings

0
Remix

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.

AmazonOnline assessmentLast asked Jan 2026
No answer yet. Write the first one; the best answer gets endorsed.