The left-view of a binary tree is a list of nodes obtained by looking at the tree from left hand side and from top down. For example, given a tree sho ...
分类:
其他好文 时间:
2021-03-11 18:26:16
阅读次数:
0
问题 请完成一个函数,输入一个二叉树,该函数输出它的镜像。 示例 解答1:递归 class Solution { public: TreeNode* mirrorTree(TreeNode* root) { if (!root) return nullptr; // 前序操作 swap(root-> ...
分类:
其他好文 时间:
2021-03-11 17:54:57
阅读次数:
0
[20:30:30 root@CentOS8 ~]#ls anaconda-ks.cfg [20:30:31 root@CentOS8 ~]#echo {1..10} > a.txt [20:30:41 root@CentOS8 ~]#cat a.txt 1 2 3 4 5 6 7 8 9 10 [ ...
分类:
其他好文 时间:
2021-03-11 16:31:52
阅读次数:
0
配置加速器(最新版的配置方法) [root@ming2 containers]# vim registries.conf [root@ming2 containers]# cat registries.conf unqualified-search-registries = ["docker.io" ...
分类:
其他好文 时间:
2021-03-11 14:17:03
阅读次数:
0
拉取镜像 docker pull mysql:5.7.3 运行镜像 docker run -e MYSQL_ROOT_PASSWORD=root -d mysql:5.7.32 # -e MYSQL_ROOT_PASSWORD=root意思是给root用户设置密码为root 启动一个mysql服务, ...
分类:
数据库 时间:
2021-03-10 13:25:55
阅读次数:
0
系统的目录结构 Windows D:\Linux脱产10期视频\基础阶段 反斜线 Linux 所有的文件或者目录的起点或者顶点都是以根开始的 / 斜线 Linux的目录结构就像是一个倒挂的树形结构 必知必会的目录及文件 [root@qls ~]# ls -1 / 软连接文件 /bin #存放系统命令 ...
分类:
其他好文 时间:
2021-03-10 13:11:37
阅读次数:
0
安装podmen [root@localhostl ~]# yum -y remove docker-ce [root@localhostl ~]# yum -y install podman [root@localhostl ~]# cd /etc/containers/ [root@localh ...
分类:
其他好文 时间:
2021-03-10 13:05:54
阅读次数:
0
1. Vmware虚拟机安装 2. Centos7安装 3. 虚拟机网卡设置 //重启 1、reboot 2、shutdown -r now 立刻重启(root用户使用) //更改/etc/sysconfig/network-scripts/路径下的 ifcfg文件、 cd /etc/sysconf ...
分类:
系统相关 时间:
2021-03-10 12:58:11
阅读次数:
0
MySQL 1. 数据库简单操作 经常使用PHP脚本来操作数据库 从cmd连接mysql服务器 mysql -u root -p use 命令选择数据库 use RUNOOB; create 命令创建数据库 CREATE DATABASE 数据库名; create DATABASE RUNOOB; ...
分类:
数据库 时间:
2021-03-09 13:44:55
阅读次数:
0
问题: 给定一棵二叉树。 求给定节点target开始,距离K的所有节点。 Example 1: Input: root = [3,5,1,6,2,0,8,null,null,7,4], target = 5, K = 2 Output: [7,4,1] Explanation: The nodes ...
分类:
其他好文 时间:
2021-03-09 13:09:46
阅读次数:
0