tar GNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. tar命令可以将多个文件或目录打包成一个大文件 ...
分类:
系统相关 时间:
2020-05-06 21:32:59
阅读次数:
93
ELK架构日志处理逻辑:1、业务层Filebeat安装时会自动获取主机运行站点域名及环境信息新增channel及env标签,并将channel的值作为kafka的topic信息2、Kafka收到Filebeat的新增字段及Topic信息,自动创建Topic信息,以等待logstash消费3、Logstash根据脚本自动生成input及output配置这里的topic一定和filebeat的chan
分类:
其他好文 时间:
2020-05-05 21:56:19
阅读次数:
81
题目: 解答: 1 class Solution { 2 public: 3 vector<int> productExceptSelf(vector<int>& nums) 4 { 5 int n = nums.size(); 6 7 //把向量output初始化为1 8 vector<int> ...
分类:
编程语言 时间:
2020-05-05 18:04:21
阅读次数:
56
IO原理 I/O是Input/Output的缩写, I/O技术是非常实用的技术,用于 处理设备之间的数据传输。如读/写文件,网络通讯等。 Java程序中,对于数据的输入/输出操作以“流(stream)” 的 方式进行 java.io包下提供了各种“流”类和接口,用以获取不同种类的 数据,并通过标准的 ...
分类:
其他好文 时间:
2020-05-05 12:27:57
阅读次数:
55
Input: 包含多组数据。 每行表示初始人数n。<n<1000000)< p=""> 最后一组是0,不用处理。 Output: 对每个测试数据输出最后一人的初始编号 Sample Input: 3 7 0 Sample Output: 2 4代码:1、这是最简单的版本,但是难以理解 #includ ...
分类:
其他好文 时间:
2020-05-05 00:44:23
阅读次数:
137
Problem F: 平面上的点和线——Point类、Line类 (VI) Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 7568 Solved: 3459[Submit][Status] Description 在数学上,平面直角坐标系上的点用X轴和Y ...
分类:
其他好文 时间:
2020-05-04 19:47:18
阅读次数:
62
Given a complete binary tree, count the number of nodes. Note: Definition of a complete binary tree from Wikipedia: In a complete binary tree every le ...
分类:
其他好文 时间:
2020-05-04 15:47:22
阅读次数:
55
问题: 求给定数组中两两元素之差,从小到大第k个差是多少 Example 1: Input: nums = [1,3,1] k = 1 Output: 0 Explanation: Here are all the pairs: (1,3) -> 2 (1,1) -> 0 (3,1) -> 2 Th ...
分类:
其他好文 时间:
2020-05-04 15:42:43
阅读次数:
48
1.pinMode(pin,mode) pinMode函数用于配置引脚以及设置输入或输出模式,无返回值。pin参数是要配置的引脚,mode参数表示设置该引脚的模式为输入或输出,即INPUT or OUTPUT。 INPUT用于读取信号,OUTPUT用于控制信号。开发板上的数字输入输出引脚有14个,0 ...
分类:
其他好文 时间:
2020-05-04 15:14:58
阅读次数:
338
问题: 给定两个数组,求两个数组中最长公共子数组的长度。 Example 1: Input: A: [1,2,3,2,1] B: [3,2,1,4,7] Output: 3 Explanation: The repeated subarray with maximum length is [3, 2 ...
分类:
其他好文 时间:
2020-05-04 13:05:59
阅读次数:
52