코딩 테스트/문제 풀기
[프로그래머스] 단속카메라
hazel_
2021. 4. 28. 18:59
programmers.co.kr/learn/courses/30/lessons/42884
def solution(routes):
answer=0
routes.sort(key=lambda x : x[1])
camera=-30001
for route in routes:
if camera<route[0]:
camera=route[1]
print(camera)
answer+=1
return answer