Weiguang的博客

  • 首页
  • 编程开发
    • Go语言
  • 算法
  • Linux
  • 随笔

近期文章

  • TDEngine 快速上手
  • 使用 Samba 打通 Linux 物理机和 Windows 虚拟机文件互传
  • 使用 Dockerfile 构建镜像
  • Shell 编程入门
  • Flux 多表查询小实验

标签

Docker (1) EMQX (2) Git (1) Go语言 (8) Influx (2) IO 模型 (1) JVM (2) LeetCode (24) LeetCode-go (1) Linux (5) MQ (2) MQTT (1) Python (1) Shell (1) TDEngine (1) Vue (1) WordPress (1) 前端 (1) 多线程 (2) 并发编程 (4) 数据结构 (2) 时序数据库 (1) 算法和数据结构 (8) 运维 (3)

标签: LeetCode

[LeetCode每日一题]105. Construct Binary Tree from Preorder and Inorder Traversal

2020年2月22日 by lwg0452·0评论

题目如下: Given preorder and inorder traversal of a tree, construct the binary tree. eg: preorder = [3,9,20,15,7] inorder = [9,3,15,20,7] return: 3 / \ 9 20 / \ 15 7 已知二叉树的前序遍历序列和中… 阅读全文

[LeetCode每日一题]101. Symmetric Tree

2020年2月21日 by lwg0452·0评论

题目如下: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmetric: eg: 1 / \ 2 2 / \ /… 阅读全文

[LeetCode每日一题]100. Same Tree

2020年2月20日 by lwg0452·0评论

题目如下: Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally identical and the nodes have the same value. Leet… 阅读全文

[LeetCode每日一题]99. Recover Binary Search Tree

2020年2月19日 by lwg0452·0评论

题目如下: Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. LeetCode-99 Recover Binary Search Tree 该题给定一棵二叉搜索树,树中正好有两个元素放反了,要求我们恢复这棵二叉搜索树。… 阅读全文

文章分页

1 2 3
© 2018-2025 Weiguang All Rights Reserved.