[프로그래머스 - JAVA] 정렬 - Level 2 H-Index
import java.util.*;
class Solution {
public int solution(int[] citations) {
int answer = 0;
int len = citations.length;
Arrays.sort(citations);
for(int i = 1; i <= len ; i++){
if(i <= citations[len - i]){
answer = i;
}
}
return answer;
}
}