문제
해결
def solution(array, commands):
answer = ()
for command in commands:
start, end, k = command
answer.append(sorted(array(start-1:end))(k-1))
return answer
문제
해결
def solution(array, commands):
answer = ()
for command in commands:
start, end, k = command
answer.append(sorted(array(start-1:end))(k-1))
return answer