随笔分类 -  回溯

摘要:N Queens 系列题解 题目来源: "N Queens" "N Queens II" N Queens The n queens puzzle is the problem of placing n queens on an n×n chessboard such that no two que 阅读全文
posted @ 2018-02-27 00:00 言何午 阅读(160) 评论(0) 推荐(0)
摘要:Combinations 题解 题目来源:https://leetcode.com/problems/combinations/description/ Description Given two integers n and k, return all possible combinations 阅读全文
posted @ 2018-02-06 15:55 言何午 阅读(122) 评论(0) 推荐(0)
摘要:Combination Sum 系列题解 题目来源:https://leetcode.com/problems/combination sum/description/ Description Given a set of candidate numbers ( C ) (without dupli 阅读全文
posted @ 2018-02-04 19:54 言何午 阅读(163) 评论(0) 推荐(0)
摘要:Permutations 题解 题目来源:https://leetcode.com/problems/permutations/description/ Description Given a collection of distinct numbers, return all possible p 阅读全文
posted @ 2018-02-03 11:26 言何午 阅读(135) 评论(0) 推荐(0)
摘要:Letter Combinations of a Phone Number 题解 题目来源:https://leetcode.com/problems/letter combinations of a phone number/description/ Description Given a dig 阅读全文
posted @ 2018-02-01 10:31 言何午 阅读(148) 评论(0) 推荐(0)
摘要:Generate Parentheses 题解 题目来源:https://leetcode.com/problems/generate parentheses/description/ Description Given n pairs of parentheses, write a functio 阅读全文
posted @ 2018-01-31 15:36 言何午 阅读(135) 评论(0) 推荐(0)
摘要:Palindrome Partitioning 题解 原创文章,拒绝转载 题目来源:https://leetcode.com/problems/palindrome partitioning/description/ Description Given a string s, partition s 阅读全文
posted @ 2017-11-30 23:02 言何午 阅读(114) 评论(0) 推荐(0)