강의

멘토링

커뮤니티

Inflearn Community Q&A

ksuk66030220's profile image
ksuk66030220

asked

Introduction to Python Algorithm Problem Solving (Coding Test Preparation)

5. Conference room assignment (greedy)

정렬할 때 x[0]도 정렬하는 이유?

Written on

·

281

0

key = lambda x:x[1] 로만 정렬해도 문제없이 동작하지 않나요??

코테 준비 같이 해요! python

Answer 1

1

codingcamp님의 프로필 이미지
codingcamp
Instructor

네. x[1]로만 정렬해도 이 문제는 상관없습니다. 같은 질문을 한 분 이 있어 자세히 답변해 놓았으니 해당영상 옆 질문부분을 참조하세요.

ksuk66030220's profile image
ksuk66030220

asked

Ask a question