
題目描述: 反轉(zhuǎn)一個(gè)單鏈表。示例:輸入: 1->2->3->4->5->NULL輸出: 5->4->3->2->1->NULL 解題思路1: 最...
題目描述: 將兩個(gè)有序鏈表合并為一個(gè)新的有序鏈表并返回抄肖。新鏈表是通過(guò)拼接給定的兩個(gè)鏈表的所有節(jié)點(diǎn)組成的若专。 示例:輸入:1->2->4, 1->3...
題目描述: https://leetcode-cn.com/problems/diameter-of-binary-tree/ 解題思路: 左子...
題目描述: https://leetcode-cn.com/problems/convert-bst-to-greater-tree/ 解題思路...
題目描述: https://leetcode-cn.com/problems/find-mode-in-binary-search-tree/ ...
題目描述: https://leetcode-cn.com/problems/path-sum-iii/ 代碼:
題目描述: https://leetcode-cn.com/problems/n-ary-tree-level-order-traversal/...
題目描述: https://leetcode-cn.com/problems/sum-of-left-leaves/ 代碼: 遞歸
題目描述: https://leetcode-cn.com/problems/binary-tree-paths/ 代碼:遞歸