[DAY 9] Max Min
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
- 웹팩
- Props
- Array
- Algorithm
- sort()
- 리액트
- 자료구조
- 자바스크립트
- 시분할시스템
- javascript
- reduce()
- 배열
- sort
- OS
- 우아한테크러닝
- redux-saga
- 배치처리시스템
- 멀티프로그래밍
- Typescript
- js
- 프로그래머스
- Webpack
- 운영체제
- 구간합
- 컴퓨터공학
- 타입스크립트
- greedyAlgorithm
- 1day1algorithm
- React
- 알고리즘
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함