摘要: 题目: 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 阅读全文
posted @ 2017-06-12 10:07 荒野第一快递员 阅读(330) 评论(0) 推荐(0)
摘要: 题目: Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. For example,If num 阅读全文
posted @ 2017-06-08 19:28 荒野第一快递员 阅读(801) 评论(0) 推荐(0)
摘要: 题目: 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: 题意及分析:给出 阅读全文
posted @ 2017-06-08 14:54 荒野第一快递员 阅读(873) 评论(0) 推荐(0)
摘要: 题目: Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. 题意及分析:这道题的解法和上一题的解法一模 阅读全文
posted @ 2017-06-07 10:21 荒野第一快递员 阅读(266) 评论(0) 推荐(0)
摘要: 题目: 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 阅读全文
posted @ 2017-06-07 09:58 荒野第一快递员 阅读(486) 评论(0) 推荐(0)
摘要: 题目: Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example,[1,1,2] have the following uniqu 阅读全文
posted @ 2017-06-06 10:40 荒野第一快递员 阅读(161) 评论(0) 推荐(0)
摘要: 题目: Given a collection of distinct numbers, return all possible permutations. For example, [1,2,3] have the following permutations: 题意及分析:给出一组没有重复元素的数 阅读全文
posted @ 2017-06-06 09:23 荒野第一快递员 阅读(495) 评论(0) 推荐(0)
摘要: 题目: 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 阅读全文
posted @ 2017-06-05 11:17 荒野第一快递员 阅读(189) 评论(0) 推荐(0)
摘要: 题目: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 阅读全文
posted @ 2017-06-05 11:04 荒野第一快递员 阅读(250) 评论(0) 推荐(0)
摘要: 题目: 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 阅读全文
posted @ 2017-06-04 11:07 荒野第一快递员 阅读(435) 评论(0) 推荐(0)