Conversation
dev-hjJoo
reviewed
Apr 26, 2025
Owner
dev-hjJoo
left a comment
There was a problem hiding this comment.
지난 번에 미팅 때에 비해 파이썬에 많이 익숙해진 것 같아요!
슬라이싱이나 리스트 컴프리헨션 등 파이썬 문법들을 잘 활용하고 계신 것 같습니다. 👍
코드 보면서 궁금했던 부분들 코멘트 남겨두었습니다! 확인 부탁드립니다~!
그리고 브랜치 머지 하시기 전에 디렉토리 처리 잊지 말고 부탁드립니다~!
수고 많으셨습니다!!
Comment on lines
4
to
9
Owner
Owner
There was a problem hiding this comment.
혹시 이 코드는 어떤 역할을 하는 지 알 수 있을까요?
divmod는 나눈 몫과 나머지를 반환해주는 함수로 알고 있는데, 이 두 값을 더한 값을 인덱스로 쓰는 이유가 있나요?
Owner
There was a problem hiding this comment.
이건 디버깅 코드인가요? 아니면 아직 이 코드가 통과가 안 된 상태인가요?
Comment on lines
19
to
21
Owner
There was a problem hiding this comment.
스터디 때 제 코드 설명드리면서 언급했던 아이디어인데, 가장 늦은 종료 시간을 변수에 담아 업데이트 하는 방식은 어떠신가요?
지금 코드에서 reservation 리스트에 time 값을 append 해주고 있지만 활용하는 값은 마지막에 추가된 종료시간(reservation[-1][1])만을 고려하고 있는 것으로 보여서요.
재사용되지 않는 데이터라 메모리 측면에서 비효율적인 것 같습니다. 한 번 고려해주시면 감사하겠습니다!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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