
216. 組合總和 III[https://leetcode.cn/problems/combination-sum-iii/] 與77. 組合...
回溯算法基礎(chǔ)總結(jié) 往往是遞歸中包含著回溯,所以回溯函數(shù)即遞歸函數(shù) 回溯的本質(zhì)是窮舉,窮舉所有可能,然后選出我們想要的答案 可以解決如下幾種問(wèn)題 ...
235. 二叉搜索樹(shù)的最近公共祖先[https://leetcode.cn/problems/lowest-common-ancestor-of...
530. 二叉搜索樹(shù)的最小絕對(duì)差[https://leetcode.cn/problems/minimum-absolute-differenc...
110. 平衡二叉樹(shù)[https://leetcode.cn/problems/balanced-binary-tree/] 思路 平衡二叉樹(shù)定...
104. 二叉樹(shù)的最大深度[https://leetcode.cn/problems/maximum-depth-of-binary-tree/...
102. 二叉樹(shù)的層序遍歷[https://leetcode.cn/problems/binary-tree-level-order-trave...
二叉樹(shù)的遍歷方式 深度優(yōu)先遍歷 前序遍歷:根、左、右(遞歸法、迭代法) 中序遍歷:左、根、右(遞歸法、迭代法) 后序遍歷:左、右、根(遞歸法、迭...
239. 滑動(dòng)窗口最大值[https://leetcode.cn/problems/sliding-window-maximum/] 解題思路 ...