@@ -0,0 +1,418 @@
+public class Solution %7B%0A    public int hIndex(int%5B%5D citations) %7B%0A        if(citations.length == 0)%7B%0A            return 0;%0A        %7D%0A        Arrays.sort(citations);%0A        int len = citations.length;%0A        int hIndex = 0;%0A        for(int i = 1; i %3C= len; i ++)%7B%0A            hIndex = ((int)Math.min(citations%5Blen-i%5D, i) %3E hIndex)? (int) Math.min(citations%5Blen-i%5D, i) : hIndex;%0A        %7D%0A        return hIndex;%0A    %7D%0A%7D

Q274 H-Index