diff --git a/LiiNi-coder/202511/08 PGM H-index.md b/LiiNi-coder/202511/08 PGM H-index.md new file mode 100644 index 00000000..1dafdd49 --- /dev/null +++ b/LiiNi-coder/202511/08 PGM H-index.md @@ -0,0 +1,20 @@ +```java +import java.util.*; + +class Solution { + public int solution(int[] citations) { + Arrays.sort(citations); + int n = citations.length; + int answer = 0; + + for(int i = 0; i < n;i++){ + int h = n -i; + if(citations[i] >= h){ + answer = h; + break; + } + } + return answer; + } +} +```