[robinyoon-dev] WEEK 03 Solutions#2434
Open
robinyoon-dev wants to merge 2 commits intoDaleStudy:mainfrom
Open
Conversation
OstenHun
approved these changes
Mar 16, 2026
Member
OstenHun
left a comment
There was a problem hiding this comment.
각 단계별로 논리를 나누어 진행하신 점이 너무 훌륭합니다!! 코드를 읽고 디버깅할 때 순서가 잘 보이고 논리 흐름을 파악하기도 쉽네요.
ASCII 범위를 직접 정리해서 안전하게 요구사항을 충족하신 부분도 인상적입니다!
엣지 케이스 대비를 시도하신 점도 좋았습니다! 다만, 뒤에 alphanumeric 문자들만 남기는 과정에서 !!! 같은 입력값은 자연스레 빈 문자열로 변하게 됩니다. 이 빈 문자열은 이후 reverse로 palindrome을 확인하는 과정에서 자연스럽게 검증되므로, 엣지 케이스 처리가 약간 중복되었다는 느낌이 듭니다.
그리고 JS에서는 문자열도 배열처럼 인덱스 접근이 가능한 것으로 알고 있습니다. 이 때문에 s를 굳이 배열로 변환하는 과정 또한 불필요해 보입니다!!
코드 중간중간 Array를 여러 번 생성해서 풀고 계시는데, 이는 결국 더 많은 메모리 공간을 할당해서 문제를 푸는 것을 의미합니다. 데이터를 복사하는 데도 비용이 들거든요. 배열 선언을 최소화하는 방향으로 고민해 보시면 조금 더 효율적인 코드를 작성하실 수 있을 것 같습니다!
첫날 문제 풀이 고생 많으셨습니다!! 내일도 파이팅입니다!
P.S.) 문제 푸시고 시간/공간 복잡도를 직접 구해보시면 더 도움이 될 것 같아요!
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 하나 이상을 반드시 검토를 해주셔야 합니다!