Open
Conversation
sonms
approved these changes
Nov 12, 2025
Member
sonms
left a comment
There was a problem hiding this comment.
와 2문제를..! 열심히 하시는 모습이 너무 좋네요 역시 차민님 👍
Comment on lines
+15
to
+17
| my_string.toCharArray().forEach(){ | ||
| i -> answer = i + answer | ||
| } |
Member
There was a problem hiding this comment.
문자열 덧셈(+)이 누적될 때 매번 새 String 생성이 되서 성능이 떨어질 수 있어요!
reversed()를 사용해보거나 StringBuilder를 사용해보시면 더 좋을 것 같아요!
pg_크기가 작은 문자열.kt
Outdated
Comment on lines
7
to
8
Member
There was a problem hiding this comment.
length는 중간에 변하지 않을 것 같은데 val로 선언해도 좋을 것 같아요!
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.
뒤집힌 문자열을 풀었어요
두개의 포인트를 잡았습니다.
크기가 작은 문자열 문제는 map을 공부해보고 다시 풀어 볼 예정입니다!