算是第一个独立完成的中等题了。对二叉树进行一次先序遍历即可。 class Solution { public: TreeNode *targetNode; TreeNode *resultNode; TreeNode *getTargetCopy(TreeNode *original, TreeNo ...
分类:
其他好文 时间:
2021-02-26 13:09:42
阅读次数:
0
1.挂载 [root@localhost ios]# mount CentOS-7-x86_64-DVD-1908.iso -o loop /mnt 2.进入到目录查看 [root@localhost mnt]# lsCentOS_BuildTag EFI EULA GPL images isoli ...
分类:
移动开发 时间:
2021-02-26 13:07:04
阅读次数:
0
1、本质 硬链接:本质是同一个文件 软链接:本质还是同一个文件 [root@CentOS8 data]# ln a.txt test/b.txt [root@CentOS8 data]# ll -i a.txt test/b.txt 131 -rw-r--r--. 2 root root 0 Feb ...
分类:
其他好文 时间:
2021-02-26 12:56:00
阅读次数:
0
1.增加节点标签 备注 =:代表增加标签 kubectl label nodes node3 node-role.kubernetes.io/node3= 2.减少节点标签 备注 -:代表减少标签 kubectl label nodes node3 node-role.kubernetes.io/n ...
分类:
其他好文 时间:
2021-02-26 12:55:02
阅读次数:
0
问题: 给定二叉树,进行层序遍历,从底层向上输出。 Example 1: Input: root = [3,9,20,null,null,15,7] Output: [[15,7],[9,20],[3]] Example 2: Input: root = [1] Output: [[1]] Exam ...
分类:
其他好文 时间:
2021-02-26 12:54:45
阅读次数:
0
[root@localhost logs]# tail -100f error.log ngx_http_fastdfs_process_init pid=11255 [2021-02-24 19:11:20] ERROR - file: ../common/fdfs_http_shared.c, ...
分类:
其他好文 时间:
2021-02-26 12:54:25
阅读次数:
0
#!/bin/bash -ilex #服务名称 SERVER_NAME=project-name 源jar路径,mvn打包完成之后,target目录下的jar包名称,也可选择成为war包,war包可移动到Tomcat的webapps目录下运行,这里使用jar包,用java -jar 命令执行 JAR ...
分类:
其他好文 时间:
2021-02-25 12:21:35
阅读次数:
0
Tomcat虚拟路径:作用类似于访问某个设定的路径时,根据虚拟路径的配置去访问一个绝对路径下的项目1.E盘根目录下创建demo文件夹(E:\demo)。复制Tomcat目录下的webapps\ROOT中的WEB-INFO文件夹到demo文件夹。(里面带有一个web.xml文件)2.在tomcat\c ...
分类:
其他好文 时间:
2021-02-25 12:14:01
阅读次数:
0
总结 插入: 插入的节点都为红色 没有根节点,连到root 其他情况插入后,重平衡 插入重平衡 根节点,调为黑色即可 插入结点的父节点为黑色,不需要重平衡 插入节点的父节点为红色 3.1. 插入节点的父节点为左节点(确定叔叔节点) 3.1.1. 插入结点为左节点 3.1.1.1. 插入节点的叔叔结点 ...
分类:
编程语言 时间:
2021-02-25 12:12:42
阅读次数:
0
文件夹数据库处理逻辑 public class DbFolder { JSONObject root; public DbFolder() { this.root = new JSONObject(); this.root.put("f_id", ""); this.root.put("f_name ...
分类:
Web程序 时间:
2021-02-25 11:55:52
阅读次数:
0