文章
[LeetCode] Binary Tree Longest Consecutive Sequence
BinaryTreeLongestConsecutiveSequence<blockquote<pGivenabinarytree,findthelengthofthelongestconsecutive<br/sequencepath.</p
[LeetCode] Binary Tree Paths
BinaryTreePathsRecursionTimeComplexityO(N)SpaceComplexityO(logn)思路树的前序遍历,递归的终止条件的第一个rootnull,另一个终止条件是当root是叶
[LeetCode] Convert BST to Greater Tree
ConvertBSTtoGreaterTree<blockquote<pGivenaBinarySearchTree(BST),convertittoaGreaterTreesuchthateverykeyoftheoriginalBS
[LeetCode] Flatten Binary Tree to Linked List
FlattenBinaryTreetoLinkedList<blockquote<pFlattenabinarytreetoafake&34;linkedlist&34;inpreordertraversal.<br/Hereweuse
[LeetCode] Convert Sorted Array to Binary Search Tree
ConvertSortedArraytoBinarySearchTreeWithMinimalHeight<blockquote<pGivenasorted(increasingorder)array,Convertittocreateabi
leetcode40 combination sum 2
参考思路和leetcode39combinationsum非常类似,只是这里需要增加进行重复处理的部分。请参考我对leetcode39进行解答的这篇博客(https://segmentfault.com/a/1190000009322706)。题目要求<pr
leetcode39 combination sum
题目要求<pre<codeGivenasetofcandidatenumbers(C)(withoutduplicates)andatargetnumber(T),findalluniquecombinationsinCwherethec
leetcode36 Valid Sudoku 查看数独是否合法
题目要求<pre<codeDetermineifaSudokuisvalid,accordingto:SudokuPuzzlesTheRules.TheSudokuboardcouldbepartiallyfilled,whereempt
leetcode50 Pow(x, n)自定义实现指数运算
题目要求此处为题目链接(https://link.segmentfault.com/?encFBO%2Fx9oNPM6nDxbIv%2BfEyA%3D%3D.dOaNAUR10Kgf%2BWMbOUIETgnoU6qaPzBtncS%2BKMNrnctSXGpYK5cvnsgVTO
leetcode29 Divide Two Integers
题目要求<pre<codeDividetwointegerswithoutusingmultiplication,divisionandmodoperator.Ifitisoverflow,returnMAX_INT.</code</pre
已加载文章中没有匹配内容,试试其他关键词或清空搜索。