-
-
Notifications
You must be signed in to change notification settings - Fork 195
[Chaedie] Week 13 #1078
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
[Chaedie] Week 13 #1078
Conversation
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.
공간 복잡도를 O(h) h는 재귀 스택의 높이, 로 풀이하려면 어떤 방법을 사용할 수 있을까요?
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.
최악의 경우 모든 노드를 방문해야 해서 제 생각에는
시간 복잡도 : O(n) n은 노드의 갯수
공간 복잡도 : O(h) h는 재귀 스택의 높이
라고 생각되는데 어떠실까요?
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.
정렬 알고리즘의 시간 복잡도는 O(n log n) 이라고 생각되는데 python에서 sort() 사용시 시간 복잡도가 궁금하네요!
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.
13주차 리트코드 문제 풀이 고생 많으셨습니다!
풀어주신 문제들 중에 코멘트 드린 부분은 같이 확인해보면 좋을것 같습니다ㅎㅎ
3기 참여중 못푸신 문제 혹은 아쉬우신 부분이 있으시다면 4기 재참여 해보시는 건 어떨까요?
14주차 문제 풀이도 파이팅입니다!
답안 제출 문제
체크 리스트
In Review
로 설정해주세요.