[python] Leetcode 46. Permutations
https://leetcode.com/problems/permutations/ Permutations - 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 문제 소개 요약: 숫자 배열에 대하여 모든 순열을 구하시오 관련 토픽(알고리즘, 라이브러리) : dfs Input: nums = [1,2,3] Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]] Code & 설명 def permute(self, nums): gl..
[python] Leetcode 49. Group Anagrams
https://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 문제 소개 요약: 애나그램이 같은 문자열끼리 묶은 값 이중배열을 반환하시오 관련 토픽(알고리즘, 라이브러리) : sorting , Hash Table Input: strs = ["eat","tea","tan","ate","nat","bat"] Output: [["bat"],["nat","tan"],["at..