PS:本文主要包括二叉树的前序,中序,后序,层序,垂序遍历,使用cpp语言。 前序遍历 struct TreeNode { int val; TreeNode* left; TreeNode* right; TreeNode(int x) : val(x), left(NULL), right(NU ...
分类:
其他好文 时间:
2021-04-20 15:06:15
阅读次数:
0
安装Docker 国内方式 国内的网络环境众所周知,所以推荐使用镜像站进行安装 sudo apt-get update && sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-p ...
分类:
系统相关 时间:
2021-04-20 15:00:00
阅读次数:
0
快速查看ES集群状态 GET _cluster/health { "cluster_name": "elasticsearch", "status": "yellow", "timed_out": false, "number_of_nodes": 1, "number_of_data_nodes" ...
分类:
其他好文 时间:
2021-04-20 14:54:42
阅读次数:
0
1.npm安装:npm install axios 2.axios发送请求后返回的是一个promise 3.axios发送get请求: import axios from 'axios'; axios.get('http://localhost:8080/getData?username=abc&i ...
分类:
移动开发 时间:
2021-04-20 14:53:50
阅读次数:
0
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.10.0.tar.bz2 tar -xf freetype-2.10.0.tar.bz2 cd freetype-2.10.0 ./configure --prefi ...
分类:
系统相关 时间:
2021-04-20 14:36:46
阅读次数:
0
1.simple_php ?<?php show_source(__FILE__); include("config.php"); $a=@$_GET['a']; $b=@$_GET['b']; if($a==0 and $a){ echo $flag1; } if(is_numeric($b)){ ...
分类:
其他好文 时间:
2021-04-20 14:34:36
阅读次数:
0
【python】Leetcode每日一题-存在重复元素3 【题目描述】 给你一个整数数组 nums 和两个整数 k 和 t 。请你判断是否存在 两个不同下标 i 和 j,使得 abs(nums[i] - nums[j]) ? t ,同时又满足 abs(i - j) ? k 。 如果存在则返回 tru ...
分类:
编程语言 时间:
2021-04-20 14:30:59
阅读次数:
0
/* get参数处理-url核心模块 */ const url = require('url'); // parse方法的作用就是把URL字符串转化为对象 let str = 'http://www.baidu.com/abc/qqq?flag=123&keyword=java'; let ret ...
分类:
Web程序 时间:
2021-04-20 14:29:23
阅读次数:
0
golang easyjson使用 1.先安装easyjson go get -u github.com/mailru/easyjson/ 2.在结构体上加//easyjson:json的注解 //easyjson:json type School struct { Name string `jso ...
分类:
Web程序 时间:
2021-04-20 14:21:08
阅读次数:
0
参考文章 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int X[] = {0, -1, 1, 0, 0}; 5 int Y[] = {0, 0, 0, -1, 1}; 6 7 bool vis[10][10]; 8 int res = ...
分类:
其他好文 时间:
2021-04-20 14:10:10
阅读次数:
0