-
-
Notifications
You must be signed in to change notification settings - Fork 305
[doh6077] WEEK 03 solutions #2096
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
Conversation
|
엇 안녕하세요 잠시 깜빡하느라 리뷰하지 못해서 빠르게 리뷰 해드리겠습니다! |
ZetBe
left a comment
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.
미흡하지만, 제 리뷰가 조금이나마 도움이 되기를 바랍니다
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.
현재 문제 푸는 함수 바로 위에 따로 함수를 작성한 것이 인상깊었습니다!
이렇게 풀면 내부에서 직접 작성하는 함수보다 분리된다는 느낌이 드네요
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.
one과 two로 각각 나눠서 확인한 후, 값들을 누적시키는군요
개인적으로 이 코드를 봤을 때, cur값이 제대로 작동하나 싶었는데, 애초에 중간에 두 조건이 충족하지 않으면 그냥 decode가 안되는 것이네요
공간 복잡도를 개선하는 것이 인상깊습니다
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.
간결하게 for문으로 나아가며
- 현재 값이 0보다 작으면 초기화하고
- 아니면 계속 더하는 방식이네요
저는 되게 복잡하게 생각해서 풀이가 이상한데, 잘 작성하셨다 생각합니다
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.
비트 연산자인 &를 사용하셨네요!
나중에 코테에서 비트와 관련한 문제가 나오면 사용해봐야겠습니다
저는 일일히 for문 돌려가며 작성했거든요...
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.
re를 import하면 정규식으로 작성하여 주어진 문자열을 수정할 수 있군요
re도 배워갑니다!
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.
안녕하세요! 리뷰 남겨주셔서 감사합니다 ㅎㅎ
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!