Skip to content

Conversation

@DAUN3046
Copy link
Collaborator

@DAUN3046 DAUN3046 commented Apr 27, 2022

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

@DAUN3046 DAUN3046 changed the title 1181단어정렬 김다운 week2 1181단어정렬 김다운 Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant