#111. 二叉树的最小深度 https://leetcode-cn.com/problems/minimum-depth-of-binary-tree/ 关键在于知道f(root)=min(f(left),f(right))+1这个表达式 class Solution { public: int ...
分类:
其他好文 时间:
2021-03-16 12:04:09
阅读次数:
0
下载iso文件 Desktop版 https://ubuntu.com/download/desktop/thank-you?version=20.04.2.0&architecture=amd64 Sever版 https://ubuntu.com/download/server 1、打开 2、新 ...
分类:
其他好文 时间:
2021-03-16 11:52:55
阅读次数:
0
void flatten(TreeNode root) { // base case,即最小 if (root == null) return; flatten(root.left); flatten(root.right); /**** 后序遍历 ****/ // 1、保存原来的左右节点,避免变换 ...
分类:
其他好文 时间:
2021-03-16 11:50:33
阅读次数:
0
Binary Trees With Factors (M) 题目 Given an array of unique integers, arr, where each integer arr[i] is strictly greater than 1. We make a binary tree u ...
分类:
其他好文 时间:
2021-03-15 11:24:45
阅读次数:
0
#home { margin: 0 auto; width: 65%;/*原始65*/ min-width: 980px;/*页面顶部的宽度*/ background-color: rgba(245, 245, 245, 0.5); padding: 30px; margin-top: 50px; ...
分类:
其他好文 时间:
2021-03-15 11:21:43
阅读次数:
0
Description: Given the root of a binary tree, return the bottom-up level order traversal of its nodes' values. (i.e., from left to right, level by lev ...
分类:
其他好文 时间:
2021-03-15 11:13:18
阅读次数:
0
<div class="el-tree-box"> <div class="demo-box"> <el-tree class="my-scrool-com" :data="treeList" :props="defaultProps" :expand-on-click-node="false" > ...
分类:
其他好文 时间:
2021-03-15 11:01:38
阅读次数:
0
使用EasyExcel操作excel https://www.yuque.com/easyexcel/doc/easyexcel 返回指定json格式数据 1)添加课程分类 获取上传过来的excel文件,读取里面的内容,存入数据库 当不需要spring管理的类(如Listern等)调用注入到spri ...
分类:
其他好文 时间:
2021-03-15 10:56:22
阅读次数:
0
Mysql存储引擎MyISAM与InnoDB - B+树数据的增删细节 Mysql存储引擎MyISAM与InnoDB - B+树数据的增删细节 前言Mysql索引文件的存储结构 1. InnoDB - B+Tree,叶子节点直接放置数据1.2 回表 2. MyISAM--B+Tree,叶子节点放置数 ...
分类:
数据库 时间:
2021-03-15 10:53:32
阅读次数:
0
1.二叉树的前序遍历:输出当前结点的值之后再去判断是否含有子节点如果有就继续调用递归;2.二叉树的中序遍历:先判断当前节点的一个子节点是否存在并递归之后再去输出当前节点的值,再继续判断另一边的节点;3.二叉树的后序遍历:先判断左右两边的子节点是否存在,如果存在就去递归,直到最后的递归完成后再输出当前 ...
分类:
其他好文 时间:
2021-03-15 10:48:20
阅读次数:
0