Skip to content

Commit dd2d45c

Browse files
committed
[PGS] H-index / Level 2 / 45분 / 성공
1 parent 2eb9a48 commit dd2d45c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def solution(citations):
2+
citations.sort()
3+
4+
for i in range(len(citations)):
5+
if citations[i] >= len(citations) - i:
6+
return len(citations) - i
7+
return 0

0 commit comments

Comments
 (0)