https://programmers.co.kr/learn/courses/30/lessons/42748 코딩테스트 연습 - K번째수 [1, 5, 2, 6, 3, 7, 4] [[2, 5, 3], [4, 4, 1], [1, 7, 3]] [5, 6, 3] programmers.co.kr 레벨 1이라 그런지 빠르게 혼자 풀었다. 내가 작성한 코드 : def solution(array, commands): answer = [] for com in commands : start = com[0] end = com[1] tmp_arr = array[start-1:end] tmp_arr.sort() answer.append(tmp_arr[com[2]-1]) return answer