algorithm/python
프로그래머스/정렬/K번째수
아르르르를를르
2020. 3. 7. 12:17
level1은 역시 쉽다.
https://programmers.co.kr/learn/courses/30/lessons/42748
def solution(array, commands):
answer = []
for com in commands:
temp = array[com[0]-1:com[1]]
temp.sort()
answer.append(temp[com[2]-1])
return answer