![](http://i1.daumcdn.net/thumb/C148x148.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/bNl6dL/btqyUfRYPZT/PqYFkuyv8yJcVERKYV2jp1/img.png)
You will be given a list of integers, arr, and a single integer k. You must create an array of length k from elements of arr such that its unfairness is minimized. Call that array subarr. Unfairness of an array is calculated as max(subarr) - min(subarr) Where: - max denotes the largest integer in subarr. - min denotes the smallest integer in subarr. As an example, consider the array [1, 4, 7, 2]..
1Day 1Algorithm
2019. 10. 9. 15:45
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Typescript
- Array
- 프로그래머스
- 자료구조
- 자바스크립트
- OS
- redux-saga
- Algorithm
- 1day1algorithm
- javascript
- Props
- 배열
- 시분할시스템
- 구간합
- 우아한테크러닝
- 멀티프로그래밍
- reduce()
- 웹팩
- 리액트
- 타입스크립트
- Webpack
- greedyAlgorithm
- 운영체제
- sort()
- 배치처리시스템
- 컴퓨터공학
- React
- js
- 알고리즘
- sort
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함