Skip to content

Conversation

wogha95
Copy link
Contributor

@wogha95 wogha95 commented Oct 13, 2024

답안 제출 문제

체크 리스트

  • PR을 프로젝트에 추가하고 Week를 현재 주차로 설정해주세요.
  • 바로 앞에 PR을 열어주신 분을 코드 검토자로 지정해주세요.
  • 문제를 모두 푸시면 프로젝트에서 Status를 In Review로 설정해주세요.
  • 코드 검토자 1분 이상으로부터 승인을 받으셨다면 PR을 병합해주세요.

@wogha95 wogha95 self-assigned this Oct 13, 2024
@wogha95 wogha95 added the js label Oct 13, 2024
* 모든 트리를 순회합니다.
*
* SC: O(N)
* 최악의 경우 (한쪽으로 치우친 트리) N만큼 CallStack이 생깁니다.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

트리의 높이 H로 공간 복잡도를 설명하는 것도 괜찮은 방법일 것 같습니다 :)

@@ -0,0 +1,65 @@
/**
* 모든 케이스가 많지 않다고 생각되어 분기처리하였습니다..
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

생각하신 방법으로 끝까지 구현해내신게 멋집니다!

@wogha95 wogha95 marked this pull request as ready for review October 20, 2024 23:16
@wogha95 wogha95 requested a review from a team as a code owner October 20, 2024 23:16
Copy link
Contributor

@HC-kang HC-kang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wogha95 님 하나씩 직접 풀어내시는 모습 정말 멋지고 보기좋네요!
지난 주 고생 많으셨고, 이번 주도 화이팅입니다~!

} else {
right = center;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

직접 하나씩 분기처리하여 답을 찾아내신점 정말 멋집니다!
아래는 중요하지 않은 내용입니다
53-61라인의 경우에도 37-44, 45-52라인과 같이 대칭성을 맞춰주셨다면 조금 더 좋았을것같네요!

@wogha95 wogha95 merged commit b14e4d9 into DaleStudy:main Oct 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

3 participants