week2 1181단어정렬 김다운 #37
Open
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.
input된 list를 set으로 중복을 없앤 뒤, 오름차순 정렬했다. 그리고 람다식으로 글자수에 따라 재정렬했다.
람다식을 사용해서 한 줄에 오름차순 정렬과 글자수 정렬이 동시에 가능할테지만, 내 눈엔 복잡하게 느껴져서 굳이 두 번 정렬하였다. 아직 잘 활용하지 못하는 것 같아서 아쉽지만 여러 문제를 풀면서 감각을 늘려야 될 것 같다.