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
- 리딩영역
- 문자열 순서 변경
- 상속
- 코딩연습
- 프론트앤드공부
- 오버플로우
- 코드블럭디자인
- 접근오류
- 가운데정렬
- 벌티컬라인
- 티스토리코드블럭
- html태그
- highlight.js
- GIT
- 알고리즘연습
- 네거티브 마진
- NthLargestNumber
- JS #DOM #todolist
- js기초
- 컴퓨터세팅
- 방향성고민
- 노마드모멘텀클로닝
- css
- 마진병합
- z-index
- 라인하이트
- Til
- slack
- float
- clear
Archives
- Today
- Total
목록JS/알고리즘 연습 (1)
부엔 개발 까미노
kthLargestElement
문제 단, sort나 max 같이 JS 자체 정렬함수는 되도록 쓰지않고 구현해볼것. /* * Given an array of integers find the kth element * in the sorted order (not the kth distinct element). * * So, if the array is [3, 1, 2, 1, 4] and k is 3 then the result is 2, * because it’s the 3rd element in sorted order. * * kthLargestElement([1,2,6,4,5], 3); // 4 * kthLargestElement([-10,-25,-47,-36,0], 1)); // 0 */이해 정수배열에서 k 번째로 큰 수를 반환하는 ..
JS/알고리즘 연습
2020. 1. 16. 13:44