其他
二叉树的中序和后序遍历的非递归实现 先序遍历: 先序遍历时,每当我们压入一个结点,我们压入结点前对其进行访问。 void midTraverse(TreeNode* pRoot, int k) { stack<TreeNode*> S; TreeNode* cur = pRoot; while(cu ...
环境准备 系统:centos7.7 redis:5.0.5 master1:192.168.33.9:7071 master2:192.168.33.10:7072 master3:192.168.33.11:7073 slave1:192.168.33.9:7074 slave2:192.168. ...
由百度百科上可以看到软件架构师的定义:所谓架构师,通俗的说就是设计师或结构设计者,这些定义如果用在建筑学上,则是很容易理解的。在软件工程领域中,软件架构师实际上就是软件项目的总体设计师,是软件组织新产品的开发与集成、新技术体系的构建者。 要理解软件架构师如何工作,在阅读了架构漫谈九篇博客后,不妨先来 ...
水题,又是一道hash题。 #include<iostream> #include<cctype> using namespace std; int hashtable[26]= {0}; int main() { char c; while(scanf("%c",&c)!=EOF) { if(is ...
1、要验证输入只能为数字时 、 如果使用type=“number”样式这边去掉type=number时自带的属性 /* 去除webkit中input的type="number"时出现的上下图标 */ input::-webkit-outer-spin-button, input::-webkit-i ...
```c++#include #include #include #include using namespace std;struct station { double per_price; double distance;};bool cmp(const station &s1, const s... ...
基本思路 构造Person结构体,属性,姓名,性别,编号,分数 初始化Girl与Boy属性,在遍历中记录Girl最高分和Boy最低分 检查是否缺失男性或者女性,按照题目要求输出对应格式 #include <bits/stdc++.h> using namespace std; struct Pers ...
前言 Nginx 是一个高性能的 HTTP 和反向代理 web 服务器,同时也提供了 IMAP/POP3/SMTP 服务 。 一、 环境说明 docker: 18.09.9-ce nginx: 1.15.1 二、 拉取 Nginx 镜像 拉取镜像 docker pull nginx 默认是摘取最新版 ...
动态主机配置协议DHCP 1.1.动态主机配置协议 DHCP(Dynamic Host Configuration Protocol) 动态主机配置协议 DHCP 提供了 即插即用连网 (plug and play networking)的机制。 这种机制允许一台计算机加入新的网络和获取IP地址而不 ...