Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- the longest increasing subsequence
- boj 1717
- 2025 프로그래머스 코딩챌린지 1차예선
- dp
- string construction
- pccp 기출문제 풀이
- find the town judge
- 브루트포스
- lock based queue
- two characters
- PCCE
- boj 6443
- DirectX
- 지게차와 크레인
- 비밀 코드 해독
- count triplets
- find the running median
- making anagrams
- boj 11657
- boj 1074
- ice cream parlor
- special string again
- LCS
- lock free stack
- 프로그래밍공부
- the maximum subarray
- DirectX12
- lock based stack
- c++
- pcce 기출문제 풀이
Archives
- Today
- Total
목록h index (1)
오구의코딩모험

[코딩테스트 고득점 KIT - 정렬] 논문 인용 수를 역순으로 정렬하여 내림차순으로 탐색한다. 논문의 수인 l 보다 인용 수가 이상인 경우를 filter로 걸러낸 후, 리스트의 길이를 H에 담는다. H의 길이가 l 이상이고, H 이외의 인용 수가 l 이하라면 l이 곧 H-Index! 끝 def solution(citations): answer = 0 citations = sorted(citations,reverse=True) for l in range(len(citations),0,-1): H = len(list(filter(lambda x : x>= l,citations))) if H >= l and len(citations)-H
프로그래밍 공부/프로그래머스
2023. 1. 2. 22:03