리트코드 49. 그룹 애너그램 (파이썬)
문자열 배열을 받아 애너그램 단위로 그룹핑하라 Example 1:Input: strs = ["eat","tea","tan","ate","nat","bat"] Output: [["bat"],["nat","tan"],["ate","eat","tea"]] Example 2: Input: strs = [""] Output: [[""]] Example 3: Input: strs = ["a"] Output: [["a"]] cf) An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. [접근 고민] 15분..
알고리즘/문자열 조작
2021. 9. 10. 21:27