leetcode617 合并二叉树
摘要:1 /* 2 * @Author: yaodaoteng 3 * @Date: 2020-11-13 17:13:10 4 * @LastEditors: yaodaoteng 5 * @LastEditTime: 2020-11-13 17:21:08 6 * @FilePath: \git\le
阅读全文
leetcode543 二叉树的直径
摘要:1 /* 2 * @Author: yaodaoteng 3 * @Date: 2020-11-13 16:45:46 4 * @LastEditors: yaodaoteng 5 * @LastEditTime: 2020-11-13 17:01:31 6 * @FilePath: \git\le
阅读全文
leetcode257 二叉树的所有路径
摘要:1 /* 2 * @Author: your name 3 * @Date: 2020-11-12 08:47:08 4 * @LastEditTime: 2020-11-12 09:11:21 5 * @LastEditors: Please set LastEditors 6 * @Descri
阅读全文
leetcode236 二叉树的最近公共祖先
摘要:1 /* 2 * @Author: your name 3 * @Date: 2020-11-12 09:13:41 4 * @LastEditTime: 2020-11-12 09:31:05 5 * @LastEditors: your name 6 * @Description: In Use
阅读全文
leetcode226 翻转二叉树
摘要:1 /* 2 * @lc app=leetcode.cn id=226 lang=cpp 3 * 4 * [226] 翻转二叉树 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10 * struct T
阅读全文
leetcode199 二叉树的右视图
摘要:1 /* 2 * @lc app=leetcode.cn id=199 lang=cpp 3 * 4 * [199] 二叉树的右视图 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10 * struct
阅读全文
leetcode129 求跟到叶节点数字之和
摘要:1 /* 2 * @lc app=leetcode.cn id=129 lang=cpp 3 * 4 * [129] 求根到叶子节点数字之和 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10 * st
阅读全文
leetcode114- 二叉树展开为链表
摘要:1 /* 2 * @lc app=leetcode.cn id=114 lang=cpp 3 * 4 * [114] 二叉树展开为链表 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10 * struc
阅读全文
leetcode145 二叉树的后序遍历 特别注意迭代
摘要:/* * @lc app=leetcode.cn id=145 lang=cpp * * [145] 二叉树的后序遍历 */ // @lc code=start /** * Definition for a binary tree node. * struct TreeNode { * int va
阅读全文
leet144 二叉树的前序遍历
摘要:/* * @lc app=leetcode.cn id=144 lang=cpp * * [144] 二叉树的前序遍历 */ // @lc code=start /** * Definition for a binary tree node. * struct TreeNode { * int va
阅读全文
leetcode113 路径总和2 特别关注
摘要:1 /* 2 * @lc app=leetcode.cn id=113 lang=cpp 3 * 4 * [113] 路径总和 II 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10 * struct
阅读全文
leetcode 112 路径总和 特别关注
摘要:1 /* 2 * @lc app=leetcode.cn id=112 lang=cpp 3 * 4 * [112] 路径总和 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10 * struct Tr
阅读全文
leetcode 111 二叉树的最小深度
摘要:1 /* 2 * @lc app=leetcode.cn id=111 lang=cpp 3 * 4 * [111] 二叉树的最小深度 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10 * struc
阅读全文
leetcode107 二叉树的层次遍历2
摘要:1 /* 2 * @lc app=leetcode.cn id=107 lang=cpp 3 * 4 * [107] 二叉树的层次遍历 II 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10 * st
阅读全文
leetcode105—— 从前序与中序遍历序列构造二叉树
摘要:1 /* 2 * @lc app=leetcode.cn id=105 lang=cpp 3 * 4 * [105] 从前序与中序遍历序列构造二叉树 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10
阅读全文
leetcode103——二叉树的锯齿形层次遍历
摘要:1 /* 2 * @lc app=leetcode.cn id=103 lang=cpp 3 * 4 * [103] 二叉树的锯齿形层次遍历 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10 * st
阅读全文
leetcode102 ——二叉树的层序遍历
摘要:1 /* 2 * @lc app=leetcode.cn id=102 lang=cpp 3 * 4 * [102] 二叉树的层序遍历 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10 * struc
阅读全文
二叉树——100 相同的树(easy)
摘要:1 /* 2 * @lc app=leetcode.cn id=100 lang=cpp 3 * 4 * [100] 相同的树 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10 * struct Tr
阅读全文
二叉树——94 二叉树的中序遍历(medium)
摘要:1 /* 2 * @lc app=leetcode.cn id=94 lang=cpp 3 * 4 * [94] 二叉树的中序遍历 5 */ 6 7 // @lc code=start 8 /** 9 * Definition for a binary tree node. 10 * struct
阅读全文