recursive
你看见我的代码了么
愿世界没有bug
展开
-
[leetcode]690. Employee Importance
[leetcode]690. Employee ImportanceAnalysis ummmm~—— [ummmm~]You are given a data structure of employee information, which includes the employee’s unique id, his importance value and his di...原创 2018-07-19 20:53:04 · 130 阅读 · 0 评论 -
[leetcode]698. Partition to K Equal Sum Subsets
[leetcode]698. Partition to K Equal Sum SubsetsAnalysis终于抽到敬业福啦 哈哈哈—— [每天刷题并不难0.0]Given an array of integers nums and a positive integer k, find whether it’s possible to divide this array into ...原创 2019-02-01 11:25:19 · 182 阅读 · 0 评论 -
[leetcode]77. Combinations
[leetcode]77. CombinationsAnalysiswaiting~—— [每天刷题并不难0.0]Given two integers n and k, return all possible combinations of k numbers out of 1 … n.排列和组合的问题好像一般都可以用递归来解决~Implementclass Solution...原创 2018-12-03 17:17:40 · 150 阅读 · 0 评论 -
[leetcode]486. Predict the Winner
[leetcode]486. Predict the WinnerAnalysis唉—— [每天刷题并不难0.0]Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the ...原创 2018-10-26 20:15:30 · 140 阅读 · 0 评论 -
[leetcode]638. Shopping Offers
[leetcode]638. Shopping OffersAnalysisfighting!!!—— [每天刷题并不难0.0]In LeetCode Store, there are some kinds of items to sell. Each item has a price.However, there are some special offers, and a sp...原创 2018-10-22 10:15:31 · 98 阅读 · 0 评论 -
[leetcode]241. Different Ways to Add Parentheses
[leetcode]241. Different Ways to Add ParenthesesAnalysisummmm—— [每天刷题并不难。。。其实已经很多天没刷了]Given a string of numbers and operators, return all possible results from computing all the different possi...原创 2018-10-10 15:13:39 · 190 阅读 · 0 评论 -
[leetcode]701. Insert into a Binary Search Tree
[leetcode]701. Insert into a Binary Search TreeAnalysis明天要吃柚子—— [每天刷题并不难0.0]Given the root node of a binary search tree (BST) and a value to be inserted into the tree, insert the value into the...原创 2018-10-19 15:08:02 · 116 阅读 · 0 评论 -
[leetcode]216. Combination Sum III
[leetcode]216. Combination Sum IIIAnalysis电脑坏了—— [心塞!!]Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combinatio...原创 2018-09-21 17:38:23 · 114 阅读 · 0 评论 -
22. Generate Parentheses
22. Generate ParenthesesAnalysis 中午吃啥~—— [ummmm~]Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. 递归实现~Implementclass Solution {...原创 2018-09-09 16:40:25 · 68 阅读 · 0 评论 -
[leetcode]526. Beautiful Arrangement
[leetcode]526. Beautiful ArrangementAnalysis 心疼奶茶妹妹~—— [马云爸爸恐成最大赢家 哈哈哈]Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array that is constructed by these N...原创 2018-09-03 15:09:50 · 109 阅读 · 0 评论 -
[leetcode]131. Palindrome Partitioning
[leetcode]131. Palindrome PartitioningAnalysisHappy girls day—— [每天刷题并不难0.0]Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindr...原创 2019-03-08 15:28:42 · 173 阅读 · 0 评论