일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- BFS
- 컴퓨터비전
- 다시풀기
- LEVEL2
- SWEA
- 자바
- D3
- Python
- 안드로이드스튜디오
- build
- 프로그래머스
- androidstudio
- 휴학
- 파이썬
- level3
- Github
- java
- Matrix Factorization
- git
- 대학원일기
- py
- 컨트리뷰톤
- 어렵다
- 내휴학생활중의아주큰일
- MSBuild
- level4
- WebOS
- SQL
- 대학원
- level1
Archives
- Today
- Total
목록42747 (1)
bit가 눈 앞에서 왔다갔다
Py) 프로그래머스 42747
https://programmers.co.kr/learn/courses/30/lessons/4274 코딩테스트 연습 - H-Index H-Index는 과학자의 생산성과 영향력을 나타내는 지표입니다. 어느 과학자의 H-Index를 나타내는 값인 h를 구하려고 합니다. 위키백과1에 따르면, H-Index는 다음과 같이 구합니다. 어떤 과학자가 발표 programmers.co.kr 다시 보기 def solution(citations): citations.sort(reverse=True) h=len(citations) while True: cnt = 0 for c in citations: if c >= h: cnt += 1 # cnt는 인용수 if cnt >= h: return h h -= 1 return an..
Algorithm/Prob
2022. 1. 13. 16:57