Skip to content

Conversation

@lkhyun
Copy link
Contributor

@lkhyun lkhyun commented Nov 18, 2025

🧷 문제 링크

https://school.programmers.co.kr/learn/courses/30/lessons/17686?language=java

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

파일들이 존재함.
파일들은 head,number,tail로 이루어짐.
head는 문자열, number는 숫자, tail은 둘다 섞임.
head와 number를 기준으로 정렬하고 둘 다 같다면 순서를 유지해야함.

🔍 풀이 방법

정렬
File이라는 class를 만들고 원래 파일 이름, head, number, 기존 인덱스를 저장함.
compareTo를 오버라이드해서 정렬 조건을 다르게함.

⏳ 회고

원래는 stream을 알고리즘에서 느려서 안쓴다고 하는데,
문제 자체가 구현이고 시간에 대한 평가가 없다면 스트림을 공부해서 써보는 것도 좋을 것 같다.

@lkhyun lkhyun self-assigned this Nov 18, 2025
@lkhyun lkhyun added the fail 😢 해설을 보고 풀었거나, 못 풀었을 때 label Nov 18, 2025
@ShinHeeEul ShinHeeEul merged commit 7b9fad7 into main Nov 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fail 😢 해설을 보고 풀었거나, 못 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants