💬 문제
[코딩테스트 연습 - K번째수](https://school.programmers.co.kr/learn/courses/30/lessons/42748)
💬 풀이
func solution(array:[Int], commands:[[Int]])->[Int]{varresult:[Int]=[]forcommandin commands {
result.append(array[command[0]-1...command[1]-1].sorted()[command[2]-1])}return result
}
💬 문제[코딩테스트 연습 - K번째수](https://school.programmers.co.kr/learn/courses/30/lessons/42748)
💬 풀이