Skip to content

Conversation

@ksinji
Copy link
Contributor

@ksinji ksinji commented Oct 31, 2025

🧷 문제 링크

https://school.programmers.co.kr/learn/courses/30/lessons/42746

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

주어진 숫자들을 이어 붙여 만들 수 있는 가장 큰 수를 문자열로 반환하는 문제

🔍 풀이 방법

숫자를 문자열로 변환한 뒤, 두 문자열 a,b의 순서를 (b+a) vs (a+b) 비교해 더 큰 쪽이 앞에 오도록 정렬
정렬된 문자열 배열의 첫 원소가 "0"이면 0 리턴. 아니라면 모두 이어붙여 리턴.

⏳ 회고

정답이 0일 경우를 고려해야 한다.

@ksinji ksinji self-assigned this Oct 31, 2025
@ksinji ksinji added the success 👍 해설을 보지 않고 풀었을 때 label Oct 31, 2025
@ShinHeeEul ShinHeeEul merged commit 511e84f into main Oct 31, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants