[프로그래머스] K번째 수
https://programmers.co.kr/learn/courses/30/lessons/42748?language=python3 코딩테스트 연습 - K번째수 [1, 5, 2, 6, 3, 7, 4] [[2, 5, 3], [4, 4, 1], [1, 7, 3]] [5, 6, 3] programmers.co.kr [정답] def solution(array, commands): answer = [] for i in commands: a = i[0]-1 b = i[1]-1 c = i[2]-1 new_array=array[a:b+1] new_array.sort() answer.append(new_array[c]) return answer