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
- computerscience
- typescript
- multer-s3
- 문자열처리
- lightsailor
- 파이썬
- Simulated Annealing
- 철학
- node배포
- 컴퓨터과학
- AWS
- Hill Climbing
- node.js
- CS
- 배포
- 알고리즘
- Search Algorithm
- 문자열
- 코드
- 컴퓨터공학
- Local Search
Archives
- Today
- Total
지식의모듈화
[Level2][Javascript]H-Index 본문
function solution(citations) {
var answer = 0;
citations.sort(function (a,b){return b-a})
for(let i =0; i<citations.length ; i++){
if (citations[i]>=i+1){
answer=i+1
}
}
return answer;
}
진짜 엄청 쉬운데 너무 오래걸렸다...
아닌것같으면 빨리빨리 방향 꺽자...