[Cyjin-jani] WEEK 03 solutions#2440
Merged
Cyjin-jani merged 5 commits intoDaleStudy:mainfrom Mar 21, 2026
Merged
Conversation
juhui-jeong
approved these changes
Mar 21, 2026
Contributor
juhui-jeong
left a comment
There was a problem hiding this comment.
한 주 동안 5문제를 모두 푸시다니, 정말 수고 많으셨습니다.
4주차도 파이팅입니다.🔥
Contributor
There was a problem hiding this comment.
저도 문자열을 정제 후, 반복문을 통해서 문제를 해결했습니다.
한번 푸신 후 좀 더 최적화된 풀이까지 작성하신 부분 멋집니다 👍
Contributor
There was a problem hiding this comment.
string으로 처음에 풀이하신 후,
10진수를 2진수로 변환하는 방식으로 최적화 하신 점 좋습니다.
이 문제를 비트를 조작해서 풀어보시는 것도 추천드립니다!
풀이 방식이 다양하고, 재미있습니다.
시간복잡도나 공간복잡도 면에서는 비트로 풀어도 동일합니다.
다만, 실행 측면에서는 나눗셈보다 비트가 더 유리합니다.
시간이 부족하시면, 달레님 블로그 풀이를 참고하셔도 좋을 듯 합니다. 😄
Contributor
Author
There was a problem hiding this comment.
오.. 감사합니다! 비트 연산자를 처음 알게되었는데 뭔가 재밌는 것 같네요..!
Contributor
There was a problem hiding this comment.
백트래킹 쉽지 않네요. 저도..AI 도움을 많이 받았습니다. 🥲
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.
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!