Backtracking

  • Permutations II

    Permutations II: Given a collection of numbers, nums, that might contain duplicates, return *all possible unique permutations in any order*. Example 1: Input: nums = [1,1,2] Output: [[1,1,2], [1,2,1], [2,1,1]]…

    Read More

  • Subsets II

    Subsets II: Given an integer array nums that may contain duplicates, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Return the solution in…

    Read More

  • Subsets

    Subsets: Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Return the solution in any order.…

    Read More

  • Combination Sum II

    Combination Sum II: Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sum to target.

    Read More