Skip to content

Commit

Permalink
2024-05-22 solved
Browse files Browse the repository at this point in the history
  • Loading branch information
alstjr7437 committed May 22, 2024
1 parent 23036f6 commit 223409d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alstjr7437/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
| 22차시 | 2024.04.13 | BFS | <a href="https://www.acmicpc.net/problem/11724">연결 요소의 개수</a> | https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/78 |
| 23차시 | 2024.05.01 || <a href="https://school.programmers.co.kr/learn/courses/30/lessons/42587">프로세스</a> | https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/79 |
| 24차시 | 2024.05.14 | BFS | <a href="https://www.acmicpc.net/problem/7576">토마토</a> | https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/187 |
| 26차시 | 2024.05.22 | 브루트포스 | <a href="https://www.acmicpc.net/problem/14500">테트로미노</a> | https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/196 |
| 26차시 | 2024.05.22 | 정렬 | <a href="https://school.programmers.co.kr/learn/courses/30/lessons/42747">H-Index</a> | https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/196 |
Empty file.
8 changes: 8 additions & 0 deletions alstjr7437/정렬/H-Index.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def solution(citations):
citations.sort(reverse=True)

for i in range(len(citations)):
if(citations[i] < i+1):
return i

return len(citations)

0 comments on commit 223409d

Please sign in to comment.