Backtracking
郝春雨
大数据开发萌新,吉他入门小渣渣,吃货并一直努力地减肥着,永远怀着一颗成为大神的心,希望在智能的这几年不虚度~~~
展开
-
【LeetCode】351.Android Unlock Patterns(Medium)解题报告
【LeetCode】351.Android Unlock Patterns(Medium)解题报告题目地址:https://leetcode.com/problems/android-unlock-patterns/ 题目描述: Given an Android 3x3 key lock screen and two integers m and n, where 1 ≤ m ≤原创 2018-01-11 21:18:21 · 641 阅读 · 0 评论 -
【LeetCode】39.Combination Sum(Medium)解题报告
【LeetCode】39.Combination Sum(Medium)解题报告题目地址:https://leetcode.com/problems/combination-sum/description/ 题目描述: Given a set of candidate numbers (C) (without duplicates) and a target number (T), fin原创 2017-12-12 09:08:30 · 173 阅读 · 0 评论 -
【LeetCode】40.Combination Sum II(Medium)解题报告
【LeetCode】40.Combination Sum II(Medium)解题报告题目地址:https://leetcode.com/problems/combination-sum-ii/description/ 题目描述: Given a collection of candidate numbers (C) and a target number (T), find all un原创 2017-12-12 09:13:22 · 259 阅读 · 0 评论 -
【LeetCode】216.Combination Sum III(Medium)解题报告
【LeetCode】216.Combination Sum III(Medium)解题报告题目地址:https://leetcode.com/problems/combination-sum-iii/description/ 题目描述: Find all possible combinations of k numbers that add up to a number n, given原创 2017-12-12 09:21:33 · 190 阅读 · 0 评论 -
【LeetCode】377.Combination Sum IV(Medium)解题报告
【LeetCode】377.Combination Sum IV(Medium)解题报告题目地址:https://leetcode.com/problems/combination-sum-iv/description/ 题目描述: Given an integer array with all positive numbers and no duplicates, find the nu原创 2017-12-12 09:31:24 · 547 阅读 · 0 评论 -
【LeetCode】60.Permutation Sequence(medium)解题报告
【LeetCode】60.Permutation Sequence(medium)解题报告题目地址:https://leetcode.com/problems/permutation-sequence/description/ 题目描述: The set [1,2,3,…,n] contains a total of n! unique permutations. By list原创 2018-01-14 23:35:41 · 139 阅读 · 0 评论 -
【LeetCode】93.Restore IP Addresses(medium)
【LeetCode】93.Restore IP Addresses(medium)解题报告题目地址:https://leetcode.com/problems/restore-ip-addresses/description/ 题目描述: Given a string containing only digits, restore it by returning all possible原创 2018-01-22 20:19:52 · 189 阅读 · 0 评论 -
【LeetCode】301.Remove Invalid Parentheses(hard)解题报告
【LeetCode】301.Remove Invalid Parentheses(hard)解题报告题目地址:https://leetcode.com/problems/remove-invalid-parentheses/description/ 题目描述: Remove the minimum number of invalid parentheses in order to make原创 2018-01-16 10:09:18 · 237 阅读 · 0 评论 -
【LeetCode】291.Word Pattern II(Hard)解题报告
【LeetCode】291.Word Pattern II(Hard)解题报告题目地址:https://leetcode.com/problems/word-pattern-ii/ 题目描述: Given a pattern and a string str, find if str follows the same pattern. Here follow means原创 2018-01-30 16:11:43 · 679 阅读 · 0 评论 -
【LeetCode】282.Expression Add Operators(Hard)解题报告
【LeetCode】282.Expression Add Operators(Hard)解题报告题目地址:https://leetcode.com/problems/expression-add-operators/description/ 题目描述: Given a string that contains only digits 0-9 and a target value, retu原创 2018-01-30 16:37:04 · 338 阅读 · 0 评论 -
【LeetCode】401.Binary Watch(easy)解题报告
【LeetCode】401.Binary Watch(easy)解题报告题目地址:https://leetcode.com/problems/binary-watch/description/ 题目描述: A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the原创 2018-01-14 00:09:23 · 172 阅读 · 0 评论 -
【LeetCode】17.Letter Combinations of a Phone Number(medium)
【LeetCode】17.Letter Combinations of a Phone Number(medium)解题报告题目地址:https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/ 题目描述: Given a digit string, return all poss原创 2018-01-13 23:53:27 · 187 阅读 · 0 评论 -
【LeetCode】131.Palindrome Partitioning(medium)解题报告
【LeetCode】131.Palindrome Partitioning(medium)解题报告题目地址:https://leetcode.com/problems/palindrome-partitioning/description/ 题目描述: Given a string s, partition s such that every substring of the partit原创 2018-01-13 23:45:34 · 195 阅读 · 0 评论 -
【LeetCode】320.Generalized Abbreviation(Medium)解题报告
【LeetCode】320.Generalized Abbreviation(Medium)解题报告题目地址:加锁题 题目描述: Write a function to generate the generalized abbreviations of a word. Example: Given word = “word”, return the following原创 2018-01-11 23:28:57 · 553 阅读 · 0 评论 -
【LeetCode】78.Subsets(Medium)解题报告
【LeetCode】78.Subsets(Medium)解题报告题目地址:https://leetcode.com/problems/subsets/description/ 题目描述: Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The so原创 2018-01-03 16:32:50 · 734 阅读 · 0 评论 -
【LeetCode】90.Subsets II(Medium)解题报告
【LeetCode】90.Subsets II(Medium)解题报告题目地址:https://leetcode.com/problems/subsets-ii/description/ 题目描述: Given a collection of integers that might contain duplicates, nums, return all possible subsets原创 2018-01-03 16:36:31 · 161 阅读 · 0 评论 -
【LeetCode】77.Combinations(Medium)解题报告
【LeetCode】77.Combinations(Medium)解题报告题目地址:https://leetcode.com/problems/combinations/description/ 题目描述: Given two integers n and k, return all possible combinations of k numbers out of 1 … n.原创 2018-01-03 16:46:22 · 206 阅读 · 0 评论 -
【LeetCode】46.Permutations(Medium)解题报告
【LeetCode】46.Permutations(Medium)解题报告题目地址:https://leetcode.com/problems/permutations/description/ 题目描述: Given a collection of distinct numbers, return all possible permutations. For example,原创 2018-01-03 17:04:01 · 206 阅读 · 0 评论 -
【LeetCode】47.Permutations II(Medium)解题报告
【LeetCode】47.Permutations II(Medium)解题报告题目地址:https://leetcode.com/problems/permutations-ii/description/ 题目描述: Given a collection of numbers that might contain duplicates, return all possible uniqu原创 2018-01-03 20:06:14 · 224 阅读 · 0 评论 -
【LeetCode】31.Next Permutation(Medium)解题报告
【LeetCode】31.Next Permutation(Medium)解题报告题目地址:https://leetcode.com/problems/next-permutation/description/ 题目描述: Implement next permutation, which rearranges numbers into the lexicographically next原创 2018-01-03 20:17:32 · 139 阅读 · 0 评论 -
【LeetCode】51.N-Queens(hard)解题报告
【LeetCode】51.N-Queens(hard)解题报告题目地址:https://leetcode.com/problems/n-queens/description/ 题目描述: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens at原创 2018-01-13 00:20:41 · 255 阅读 · 0 评论 -
【LeetCode】52.N-Queens II(hard)解题报告
【LeetCode】52.N-Queens II(hard)解题报告题目地址:https://leetcode.com/problems/n-queens-ii/description/ 题目描述: Follow up for N-Queens problem. Now, instead outputting board configurations, return t原创 2018-01-13 23:30:35 · 140 阅读 · 0 评论 -
【LeetCode】267.Palindrome Permutation II(Medium)解题报告
【LeetCode】267.Palindrome Permutation II(Medium)解题报告题目地址:https://leetcode.com/problems/palindrome-permutation-ii/ 题目描述: Given a string s, return all the palindromic permutations (without dupli原创 2018-01-30 16:41:34 · 330 阅读 · 0 评论