def solution(array, commands): answer = [] for i in range(len(commands)): sorted_list = sorted(array[commands[i][0]-1:commands[i][1]]) answer.append(sorted_list[commands[i][2]-1]) return answer
한줄평: 풀었다.. 내가 풀었다.. 힌트없이...내가..완벽하지않을수있지만..