https://leetcode.com/problems/restore-ip-addresses/[https://leetcode.com/problems/resto...
https://leetcode.com/problems/restore-ip-addresses/[https://leetcode.com/problems/resto...
https://leetcode.com/problems/unique-binary-search-trees-ii/[https://leetcode.com/probl...
https://leetcode.com/problems/path-sum-ii/给定一个二叉树,给定一个int值sum,求二叉树根节点到叶子节点的路径和为sum的所有情况...
https://leetcode.com/problems/candy/给定一个int数组,每个int代表一个小孩手中的数字,给每个小孩分糖果,保证相邻的小孩中,手中数字大的...
https://leetcode.com/problems/linked-list-cycle-ii/给定一个链表,判断是否有环,并且返回环开始的那个ListNode 思路1...
https://leetcode.com/problems/reorder-list/给定一个链表,按特定的规则对链表进行插入翻转L0→L1→…→Ln-1→Ln,reorde...
https://leetcode.com/problems/sort-list/对于整数构成的链表,将其排序 O(NLogN)时间复杂度,O(1)空间复杂度 思路归并思路,...
https://leetcode.com/problems/one-edit-distance/给定word1,word2 计算从是否可以一步从word1变到word2Ex...
https://leetcode.com/problems/edit-distance/给定两个字符串word1,word2,求从word1变到word2所需要的最小步骤,没...
Given a string s , find the length of the longest substring t that contains at most 2 ...
https://leetcode.com/problems/maximum-gap/给定一个无序int数组,求出排序后相邻两个整数最大的差值 Example 1:Input:...
https://leetcode.com/problems/compare-version-numbers/给定两个string的版本号,比较两个版本号的大小 注意一些特定情...
https://leetcode.com/problems/fraction-to-recurring-decimal/给定一个除数,一个被除数,用string表示他们的返回...
https://leetcode.com/problems/longest-consecutive-sequence/给定一个int无序数组,求数组内部连续数字的最长长度Ex...
https://leetcode.com/problems/binary-tree-maximum-path-sum/给定一个二叉树,求一个叶子节点到另外一个叶子节点的最大路...
https://leetcode.com/problems/distinct-subsequences/给定字符串s和t,求s的子串中有多少种方式能变成t 解析
//https://leetcode.com/problems/flatten-binary-tree-to-linked-list/ 为什么这个解法可以ac,root都变了...
https://www.cnblogs.com/grandyang/p/9615871.htmlhttps://leetcode-cn.com/problems/er-cha...
判断一个树,是不是自身对称For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 解法一:层次遍历 解法2: ...
Interleaving Stringhttps://leetcode.com/problems/interleaving-string/给定三个字符串,s1,s2,s3,看...