• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
妖刀舍
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

随笔分类 -  二叉树

 
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 阅读全文
posted @ 2020-11-13 22:13 妖刀舍
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 阅读全文
posted @ 2020-11-13 22:11 妖刀舍
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 阅读全文
posted @ 2020-11-12 21:55 妖刀舍
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 阅读全文
posted @ 2020-11-12 21:54 妖刀舍
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 阅读全文
posted @ 2020-11-10 22:18 妖刀舍
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 阅读全文
posted @ 2020-11-10 22:17 妖刀舍
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 阅读全文
posted @ 2020-11-09 21:27 妖刀舍
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 阅读全文
posted @ 2020-11-09 21:23 妖刀舍
leetcode145 二叉树的后序遍历 特别注意迭代
摘要:/* * @lc app=leetcode.cn id=145 lang=cpp * * [145] 二叉树的后序遍历 */ // @lc code=start /** * Definition for a binary tree node. * struct TreeNode { * int va 阅读全文
posted @ 2020-11-08 19:48 妖刀舍 阅读(74) 评论(0) 推荐(0)
leet144 二叉树的前序遍历
摘要:/* * @lc app=leetcode.cn id=144 lang=cpp * * [144] 二叉树的前序遍历 */ // @lc code=start /** * Definition for a binary tree node. * struct TreeNode { * int va 阅读全文
posted @ 2020-11-08 19:47 妖刀舍 阅读(115) 评论(0) 推荐(0)
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 阅读全文
posted @ 2020-11-08 19:46 妖刀舍 阅读(90) 评论(0) 推荐(0)
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 阅读全文
posted @ 2020-11-08 19:44 妖刀舍 阅读(126) 评论(0) 推荐(0)
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 阅读全文
posted @ 2020-11-06 22:24 妖刀舍 阅读(96) 评论(0) 推荐(0)
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 阅读全文
posted @ 2020-11-06 22:23 妖刀舍 阅读(67) 评论(0) 推荐(0)
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 阅读全文
posted @ 2020-11-05 22:36 妖刀舍 阅读(148) 评论(0) 推荐(0)
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 阅读全文
posted @ 2020-11-04 23:14 妖刀舍 阅读(110) 评论(0) 推荐(0)
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 阅读全文
posted @ 2020-11-04 23:13 妖刀舍 阅读(127) 评论(0) 推荐(0)
二叉树——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 阅读全文
posted @ 2020-11-03 19:39 妖刀舍 阅读(89) 评论(0) 推荐(0)
二叉树——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 阅读全文
posted @ 2020-11-03 19:36 妖刀舍 阅读(108) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3