![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
递归
chuandalishuo
这个作者很懒,什么都没留下…
展开
-
17. Letter Combinations of a Phone Number
题目 Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Input:原创 2016-03-24 06:28:50 · 229 阅读 · 0 评论 -
22. Generate Parentheses
题目: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: "((()))", "(()())", "(())()", "()(())", "()()原创 2016-04-30 01:33:24 · 238 阅读 · 0 评论 -
374,375. Guess Number Higher or Lower I,II
We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wrong, I'll tell you whether the number I pi原创 2016-11-03 14:22:42 · 256 阅读 · 0 评论 -
325. Maximum Size Subarray Sum Equals k
题目 Given an array nums and a target value k, find the maximum length of a subarray that sums to k. If there isn't one, return 0 instead. Example 1: Given nums = [1, -1, 5, -2, 3], k = 3, return 4.原创 2016-12-04 08:45:51 · 206 阅读 · 0 评论 -
314. Binary Tree Vertical Order Traversal
题目: Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column). If two nodes are in the same row and column, the order should be fr原创 2016-12-04 08:59:10 · 202 阅读 · 0 评论 -
297. Serialize and Deserialize Binary Tree
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link to be原创 2016-12-05 10:15:43 · 147 阅读 · 0 评论 -
257. Binary Tree Paths
Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: 1 / \ 2 3 \ 5 All root-to-leaf paths are: ["1->2->5", "1->3"] /**原创 2016-12-05 10:48:47 · 168 阅读 · 0 评论