-
Notifications
You must be signed in to change notification settings - Fork 1
[W2] 회의실 배정 #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[W2] 회의실 배정 #6
Conversation
dev-hjJoo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
지난 번에 미팅 때에 비해 파이썬에 많이 익숙해진 것 같아요!
슬라이싱이나 리스트 컴프리헨션 등 파이썬 문법들을 잘 활용하고 계신 것 같습니다. 👍
코드 보면서 궁금했던 부분들 코멘트 남겨두었습니다! 확인 부탁드립니다~!
그리고 브랜치 머지 하시기 전에 디렉토리 처리 잊지 말고 부탁드립니다~!
수고 많으셨습니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ㅋㅋ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 이 코드는 어떤 역할을 하는 지 알 수 있을까요?
divmod는 나눈 몫과 나머지를 반환해주는 함수로 알고 있는데, 이 두 값을 더한 값을 인덱스로 쓰는 이유가 있나요?
[W2]정렬_이진탐색/pine/[정렬]회의실배정_1931.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이건 디버깅 코드인가요? 아니면 아직 이 코드가 통과가 안 된 상태인가요?
[W2]정렬_이진탐색/pine/[정렬]회의실배정_1931.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
스터디 때 제 코드 설명드리면서 언급했던 아이디어인데, 가장 늦은 종료 시간을 변수에 담아 업데이트 하는 방식은 어떠신가요?
지금 코드에서 reservation 리스트에 time 값을 append 해주고 있지만 활용하는 값은 마지막에 추가된 종료시간(reservation[-1][1])만을 고려하고 있는 것으로 보여서요.
재사용되지 않는 데이터라 메모리 측면에서 비효율적인 것 같습니다. 한 번 고려해주시면 감사하겠습니다!

#4
[W2] 정렬: 회의실 배정
🔍 시도 방식
1차 시도
[문제점]
📖 미팅 후 풀이 방식
진행 로직
⭐️ 코드의 포인트!
💡발전을 위한 시도
[W2] 이진탐색: K번째 수
🔍 시도 방식
1차 시도
[결과]
메모리 초과로 실패
2차 시도
[결과]
행렬의 데이터는 정렬되지 않은 데이터이기 때문에,
정렬되기 이전의 인덱스 값을 추출하는 결과가 발생하며 실패
🚧 해당 문제의 어려운 점