LeetCode 49 3

LeetCode 49. Group Anagrams (ver2)

The link : leetcode.com/problems/group-anagrams/submissions/Group Anagrams - LeetCodeLevel up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.leetcode.com예전에 이미 풀어본 적이 있었는데, 이때는 해쉬 테이블과 맵의 개념을 몰라서 아는대로 무작정 풀었섰다다시 도전하게 되었을때는 아래와 같은 방법을 고안했다. 1. Unorder_map에 문자열을 저장한다. 이때 Key와 Value는 다음과 같다.Key : 문자열을 오름차순으로 정렬한 값 ..

(LeetCode) 49. Group Anagrams

The link : leetcode.com/problems/group-anagrams/ Group Anagrams - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제는 다음과 같다. 1. C++기준, vector로 문자열이 주어진다. 2. 애너그램을 통해 같은 쌍의 문자열들을 나열하라. 이때 순서는 상관하지 않는다. 애너그램은 단어의 배열 순서를 바꿔 새로운 단어를 완성하는 암호화인데, 예를들어 "tea"라는 단어를 새로 나열하여 "eat"만들 수 있다. s..