-
Notifications
You must be signed in to change notification settings - Fork 126
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
[SunaDu] Week 6 #901
[SunaDu] Week 6 #901
Conversation
parentheses_map = { # SC: O(1) | ||
"(": ")", | ||
"{": "}", | ||
"[": "]" | ||
} |
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.
map 을 사용하지 않고 푸는 방법도 도전해도시면 재미있을것 같아요 :)
def bisectLeft(self, list, target) -> int: | ||
low = 0 | ||
high = len(list) - 1 | ||
|
||
while low <= high : | ||
mid = int(low + (high - low) / 2) | ||
|
||
if list[mid] < target: | ||
low = mid + 1 | ||
else: | ||
high = mid - 1 | ||
|
||
return low |
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.
bisectLeft 를 따로 함수로 빼셔서 각 함수들의 목적이 명확해 진 것 같아 넘 좋은것 같아요!
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.
6주차 문제 풀이 고생 많으셨습니다.
선아님 풀이 볼 때 마다 파이썬이 하고싶어지네요 ㅎㅎ
절반 정도의 기간 동안 고생 많으셨고 남은 8주도 파이팅입니다!
답안 제출 문제
체크 리스트
In Review
로 설정해주세요.