摘要: Problem LeetCode Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: The root is the maximum number 阅读全文
posted @ 2021-01-06 22:46 Wonz 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Problem LeetCode Given a binary tree, flatten it to a linked list in-place. For example, given the following tree: 1 / \ 2 5 / \ \ 3 4 6 The flattened 阅读全文
posted @ 2021-01-06 21:39 Wonz 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Problem LeetCode You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has th 阅读全文
posted @ 2021-01-06 21:05 Wonz 阅读(66) 评论(0) 推荐(0) 编辑