로딩
티스토리 데이터 처리 중입니다.

Leetcode 78. Subsets (DFS backtracking)

 Leetcode 78. Subsets (DFS backtracking)

https://leetcode.com/problems/subsets/ Subsets - 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의 Back tracking 을 활용한 문제인데요 저는 아래와 같이 풀이를 했습니다 from itertools import combinations class Solution: def subsets(self, nums: List[int]) -> List[List[int]]: #방법 1 tertools.combinat.....