Open
Conversation
seungjae708
reviewed
Nov 12, 2025
seungjae708
left a comment
There was a problem hiding this comment.
저도 이 문제 풀면서 joinToString()에 대해 처음 알게 되었는데, 가독성도 좋고 진짜 편리한 것 같아요! 수고하셨습니다~
There was a problem hiding this comment.
문제에서는 Array< String>를 받고 있는데, List< Int>처럼 타입이 변경된다면 joinToString과 StringBuilder 방식 중 어떤 방식이 코드 변화가 더 적을까요??
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.
🧩 [Week1] 문자리스트르
📘 문제 정보
https://school.programmers.co.kr/learn/courses/30/lessons/181941
📖 문제 설명
주어진 소문자 한 글자 배열을 순서대로 이어 붙여 하나의 문자열로 만드는 문제입니다.
🚀 접근 방식
joinToString을 사용해 배열 원소를 구분자 없이 연결한다.💡알게된 점 및 궁금한 점
이번 문제는 배열을 문자열로 변환해 출력하는 문제였는데, 이를 해결할 수 있는 joinToString() 이라는 함수가 코틀린 내에 있다는 것을 알게 되었다.