Combination Sum
Combination Sum: Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target.
Combination Sum: Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target.
Combinations: Given two integers n and k, return all possible combinations of k numbers chosen from the range [1, n]. You may return the answer in any order. Example 1:…
Permutations: Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. Example 1: Input: nums = [1,2,3] Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]] Example…
Generate Parentheses: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
Palindrome Partitioning: Given a string s, partition s such that every substring of the partition is a palindrome.
Word Search: Given an m x n grid of characters board and a string word, return true if word exists in the grid.