-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
💬 문제
[코딩테스트 연습 - K번째수](https://school.programmers.co.kr/learn/courses/30/lessons/42748)
💬 풀이
func solution(array:[Int], commands:[[Int]]) -> [Int] {
var result: [Int] = []
for command in commands {
result.append(array[command[0] - 1...command[1] - 1].sorted()[command[2] - 1])
}
return result
}