[23-02-01] hyuksoon.py #40
Merged
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.
PR Summary
K번째 수
그냥 매번 했는데 매번 소트 안하는 법은 없나요? 갈켜주실 분?
가장 큰 수
갱장히 스트레스 받고 풀었습니다...
343, 34 중에는 34가 먼저 나와야 하고
323, 32 중에는 323이 먼저 나와야 하길래
울까 하다가
1,2,3,,,1,2,3,,중얼중얼 하다가 갑자기 초등학교때 배운 최소공배수가 떠올랐습니다.
1000이하니깐 세자리까지만 등장하잖아요?
그래서 모든 숫자를 6자리로 바꾸었습니다.
3-> 333333
34-> 343434
343 -> 343343
그렇게 해서 정렬하니깐 풀리더라구요
굉장히 야매스럽습니다
조건이 1000 넘어가면 이 방법은 안먹히고
0과 1000은 처리하지 못해서 따로 처리해줬습니다 ㅋ.ㅋ
문제 맛있네요
더 맵게
힙으로 풀긴 했는데 항상 길이가 2이상이어야 하잖아요
근데 매번 길이를 구하자니 배열길이가 최대 100만이라 부담될거 같아서
그냥 try-except 써버렸는데 이거의 시간복잡도는 모르겠습니다?
ISSUE NUMBER