Skip to content

Commit e4ed202

Browse files
committed
[level 2] Title: H-Index, Time: 0.01 ms, Memory: 10.2 MB -BaekjoonHub
1 parent bcf49c0 commit e4ed202

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

프로그래머스/2/42747. H-Index/H-Index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
def solution(citations):
2-
citations = sorted(citations,reverse=True)
3-
point = 0
2+
citations.sort(reverse=True)
43

4+
point = 0
55
for h in range(citations[0], -1, -1) :
66
if point+1 < len(citations) and citations[point+1] >= h :
77
point += 1

프로그래머스/2/42747. H-Index/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
### 제출 일자
1818

19-
2024년 05월 01일 23:53:12
19+
2024년 05월 02일 14:26:21
2020

2121
### 문제 설명
2222

0 commit comments

Comments
 (0)