Conversation
doitchuu
approved these changes
Mar 14, 2026
| num = 0; | ||
| } | ||
| } | ||
| } |
Member
There was a problem hiding this comment.
요런 예외케이스 처리를 잘하시는군요 👍 !!
나중에 조건식을 변수로 빼도 좋을 것 같아요 얼마전에 라이브코테 관련 유튜브를 봤는데
코드 가독성 부분도 신경쓴다는 걸 본거 같아서 풀이가 좋으니 중간중간 더 읽기 좋아지면 더 좋은 풀이가 될 것 같아요 💯
sik9252
approved these changes
Mar 15, 2026
Collaborator
There was a problem hiding this comment.
전 조건으로 처리하려다가 점점 꼬여서 결국 못풀었는데 잘하시네요! a.at(-i), b.at(-i)를 활용해서 길이가 다른 경우도 자연스럽게 처리한 부분 좋은것 같습니다. 다만 분기가 조금 많은 편이라 aBit, bBit, sum처럼 중간 변수를 두면 로직이 더 읽기 쉬워질 것 같아요!
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.
이렇게 풀었어요
1. Add Binary
1) 복잡도 계산
2) 접근 아이디어
3) 회고
2. Diameter of Binary Tree
1) 복잡도 계산
2) 접근 아이디어
3) 회고