06 2021 档案

摘要:思路: labuladong手把手带你刷二叉树(第二期) 按照题目给出的例子,输入的数组为[3,2,1,6,0,5],对于整棵树的根节点来说,其实在做这件事: TreeNode constructMaximumBinaryTree([3,2,1,6,0,5]) { // 找到数组中的最大值 Tree 阅读全文
posted @ 2021-06-07 17:34 鸭子船长 阅读(58) 评论(0) 推荐(0) 编辑
摘要:/* * @lc app=leetcode.cn id=226 lang=cpp * * [226] 翻转二叉树 * * https://leetcode-cn.com/problems/invert-binary-tree/description/ * * algorithms * Easy (7 阅读全文
posted @ 2021-06-04 16:40 鸭子船长 阅读(38) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示