LeetCode 0102. Binary Tree Level Order Traversal二叉树的层次遍历【Medium】【Python】【BFS】 Problem "LeetCode" Given a binary tree, return the level order traversal ...
分类:
编程语言 时间:
2020-03-20 23:49:28
阅读次数:
74
Given a knight in a chessboard (a binary matrix with 0 as empty and 1 as barrier) with a source position, find the shortest path to a destination posi ...
分类:
其他好文 时间:
2020-03-20 13:06:50
阅读次数:
61
二叉树中第二小的节点。给定一个非空特殊的二叉树,每个节点都是正数,并且每个节点的子节点数量只能为 2 或 0。如果一个节点有两个子节点的话,那么这个节点的值不大于它的子节点的值。给出这样的一个二叉树,你需要输出所有节点中的第二小的值。如果第二小的值不存在的话,输出 -1 。例子, Example 1 ...
分类:
其他好文 时间:
2020-03-20 09:13:57
阅读次数:
60
一.预备环境1.系统 Windows2. 环境 JDK1.8、Maven、Git 二. RocketMQ部署1.下载1.1地址:http://rocketmq.apache.org/release_notes/release-notes-4.2.0/1.2选择‘Binary’进行下载1.3解压已下载 ...
LeetCode 0106. Construct Binary Tree from Inorder and Postorder Traversal从中序与后序遍历序列构造二叉树【Medium】【Python】【二叉树】【递归】 Problem "LeetCode" Given inorder and ...
分类:
编程语言 时间:
2020-03-18 21:58:48
阅读次数:
66
[TOC] "Leetcode" 问题描述 例子 方法一 方法二 ...
分类:
其他好文 时间:
2020-03-18 20:07:01
阅读次数:
41
二叉树的最大路径和。题意是给一个二叉树,节点是数字,请输出一个最大的路径和。例子, Example 1: Input: [1,2,3] 1 / \ 2 3 Output: 6 Example 2: Input: [-10,9,20,null,null,15,7] -10 / \ 9 20 / \ 1 ...
分类:
其他好文 时间:
2020-03-18 15:15:37
阅读次数:
58
1、准备需要的jar包 core-3.0.0.jar zxing.jar 下载地址:关注微信公众号 “IT资源分享平台”,或者扫描右上角二维码。自行获取 2、把jar包放到项目工程jar目录下(没有的话自己创建一个jar文件夹),选中两个jar包右键选择Build Path下的Add to Buil ...
分类:
编程语言 时间:
2020-03-18 11:44:13
阅读次数:
64
二叉树的直径。题意是给一个二叉树,找二叉树里面的最大直径。最大直径的定义是任意两个node之间的最大距离。例子, Given a binary tree 1 / \ 2 3 / \ 4 5 Return 3, which is the length of the path [4,2,1,3] or ...
分类:
其他好文 时间:
2020-03-18 09:24:23
阅读次数:
76
1 /bin bin是Binary的缩写, 这个目录存放着最经常使用的命令。 2 /boot 这里存放的是启动Linux时使用的一些核心文件,包括一些连接文件以及镜像文件。 3 /dev dev是Device(设备)的缩写, 该目录下存放的是Linux的外部设备,在Linux中访问设备的方式和访问文 ...
分类:
系统相关 时间:
2020-03-17 08:08:01
阅读次数:
74