问题 输入一棵二叉树和一个整数,打印出二叉树中节点值的和为输入整数的所有路径。从树的根节点开始往下一直到叶节点所经过的节点形成一条路径。 示例 解答 class Solution { public: vector<vector<int>> pathSum(TreeNode* root, int su ...
分类:
其他好文 时间:
2021-03-01 13:45:50
阅读次数:
0
1. 安装nodejs 1. sudo yum -y install gcc gcc-c++ openssl-devel (安装相关软件) 2. 下载nodejs源码包并解压 wget https://nodejs.org/dist/v8.15.1/node-v8.15.1.tar.gz tar z ...
分类:
Web程序 时间:
2021-03-01 13:21:38
阅读次数:
0
apt install的过程中会出现一些错误,加入--only-upgrade 在安装就可以了 第1步:安装Apache httpd服务器 首先更新系统,然后运行以下命令安装apache2软件包: sudo apt update sudo apt -y upgrade sudo apt instal ...
分类:
其他好文 时间:
2021-03-01 12:57:53
阅读次数:
0
1:使用命令安装openssh-server sudo apt-get install openssh-server openssh-client 2:这是因为没有更新apt-get,更新命令 sudo apt-get update 3:更新完之后执行 sudo apt-get install op ...
分类:
系统相关 时间:
2021-03-01 12:57:39
阅读次数:
0
protoc 编译工具 windows 平台下载对应平台的 protobuf,并配置环境变量 protobuf linux 环境先安装依赖 sudo apt-get install autoconf automake libtool curl make g++ unzip git clone htt ...
分类:
其他好文 时间:
2021-02-27 13:31:02
阅读次数:
0
刚换DEEPIN系统, 有个路由器要做调整,的确是没windows友好,查了网上资料,归总一下。 zhaodong@zhaodong-PC:sudo find / -name serial 进入 zhaodong@zhaodong-PC:~/Desktop$ cd /usr/lib/modules/ ...
分类:
其他好文 时间:
2021-02-27 13:15:24
阅读次数:
0
step1: 打开网站:https://www.ipaddress.com/,分别搜索github.com,github.global.ssl.fastly.net,codeload.github.com,获取对应的ip地址 step2: sudo vi /etc/hosts i进入编辑模式,esc ...
分类:
系统相关 时间:
2021-02-27 13:05:50
阅读次数:
0
首先使用uname -r 查看服务器内核版本,最低版本为3.8.13或3.10 安装docker,sudo wget -qO- https://get.docker.com | sh 查看docker版本,docker version 用service docker start命令启动docker ...
分类:
系统相关 时间:
2021-02-26 13:32:04
阅读次数:
0
docker 的安装 yum update sudo yum-config-manager \ --add-repo \ http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 安装docker: sudo yum instal ...
分类:
其他好文 时间:
2021-02-25 12:03:20
阅读次数:
0
Docker 环境部署的oracle #查询oracle 实例 docker ps -a #进入实例 docker exec -it 58aca4848691 /bin/bash #切换oracle用户 su - oracle #设置oracle 环境变量 export ORACLE_HOME=/u ...
分类:
数据库 时间:
2021-02-25 11:52:18
阅读次数:
0