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,求二叉樹根節(jié)點到葉子節(jié)點的路徑和為sum的所有情況...
https://leetcode.com/problems/linked-list-cycle-ii/給定一個鏈表,判斷是否有環(huán),并且返回環(huán)開始的那個ListNode 思路1...
https://leetcode.com/problems/reorder-list/給定一個鏈表,按特定的規(guī)則對鏈表進行插入翻轉(zhuǎn)L0→L1→…→Ln-1→Ln,reorde...
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數(shù)組,求出排序后相鄰兩個整數(shù)最大的差值 Example 1:Input:...
https://leetcode.com/problems/compare-version-numbers/給定兩個string的版本號,比較兩個版本號的大小 注意一些特定情...
https://leetcode.com/problems/fraction-to-recurring-decimal/給定一個除數(shù),一個被除數(shù),用string表示他們的返回...
https://leetcode.com/problems/longest-consecutive-sequence/給定一個int無序數(shù)組,求數(shù)組內(nèi)部連續(xù)數(shù)字的最長長度Ex...
https://leetcode.com/problems/binary-tree-maximum-path-sum/給定一個二叉樹,求一個葉子節(jié)點到另外一個葉子節(jié)點的最大路...
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,看...