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

2020年11月10日

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 妖刀舍 阅读(115) 评论(0) 推荐(0)
 
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 妖刀舍 阅读(125) 评论(0) 推荐(0)
 
 

2020年11月9日

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 妖刀舍 阅读(115) 评论(0) 推荐(0)
 
 

2020年11月8日

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 妖刀舍 阅读(112) 评论(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 妖刀舍 阅读(122) 评论(0) 推荐(0)
 
 

2020年11月6日

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 妖刀舍 阅读(91) 评论(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 妖刀舍 阅读(64) 评论(0) 推荐(0)
 
 

2020年11月5日

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 妖刀舍 阅读(141) 评论(0) 推荐(0)
 
 
1 2 下一页

公告


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