From f6eb2153c20711b60854d4dfc21537ef6ec2f127 Mon Sep 17 00:00:00 2001 From: LiiNi-coder <97495437+LiiNi-coder@users.noreply.github.com> Date: Sat, 8 Nov 2025 23:48:20 +0900 Subject: [PATCH] =?UTF-8?q?[20251108]=20PGM=20/=20LV2=20/=20H-Index=20/=20?= =?UTF-8?q?=EC=9D=B4=EC=9D=B8=ED=9D=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LiiNi-coder/202511/08 PGM H-index.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 LiiNi-coder/202511/08 PGM H-index.md 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; + } +} +```