문제
https://school.programmers.co.kr/learn/courses/30/lessons/42748
정답
def solution(array, commands):
result = []
for command in commands:
i, j, k = command
result.append(sorted(array[i-1:j])[k-1])
return result
https://school.programmers.co.kr/learn/courses/30/lessons/42748
def solution(array, commands):
result = []
for command in commands:
i, j, k = command
result.append(sorted(array[i-1:j])[k-1])
return result