摘要:
题目: Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "a 阅读全文
摘要:
题目: Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. For example,If num 阅读全文
摘要:
题目: Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, If n = 4 and k = 2, a solution is: 题意及分析:给出 阅读全文
摘要:
题目: Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. 题意及分析:这道题的解法和上一题的解法一模 阅读全文
摘要:
题目: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return 阅读全文
摘要:
题目: Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example,[1,1,2] have the following uniqu 阅读全文
摘要:
题目: Given a collection of distinct numbers, return all possible permutations. For example, [1,2,3] have the following permutations: 题意及分析:给出一组没有重复元素的数 阅读全文
摘要:
题目: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each 阅读全文
摘要:
题目:Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers su 阅读全文
摘要:
题目: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set i 阅读全文