Merged
Conversation
EgonD3V
reviewed
Jan 12, 2025
| const map = new Map(); | ||
|
|
||
| for(const str of strs) { | ||
| const sortedStr = str.split('').sort().join(''); |
Contributor
There was a problem hiding this comment.
이 라인이 시간복잡도 측면에서 핵심인 것 같은데, 다른 방식으로 key를 생성하면 시간복잡도를 줄일 수 있을 것 같습니다. 예를 들어 알파벳이니까 굳이 정렬을 안해도 a-z의 빈도를 나타내는 문자열로 변환하거나 할 수 있을 것 같습니다.
EgonD3V
approved these changes
Jan 12, 2025
Contributor
EgonD3V
left a comment
There was a problem hiding this comment.
이번 주도 수고 많으셨습니다. 다음 주도 화이팅!
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로 설정해주세요.