一、logstash结合redis收集系统日志 架构图: 环境准备: A主机:elasticsearch主机 IP地址:192.168.7.100 B主机:logstash主机 IP地址:192.168.7.102 C主机:redis主机 IP地址:192.168.7.103 D主机:logstas ...
分类:
其他好文 时间:
2020-03-22 15:50:50
阅读次数:
67
给定一个经过编码的字符串,返回它解码后的字符串。 编码规则为: k[encoded_string],表示其中方括号内部的 encoded_string 正好重复 k 次。注意 k 保证为正整数。 你可以认为输入字符串总是有效的;输入字符串中没有额外的空格,且输入的方括号总是符合格式要求的。 此外,你 ...
分类:
其他好文 时间:
2020-03-22 14:24:38
阅读次数:
68
queue 队列,先进先出,排队,队头队尾 queue<int> que; for(int i=0;i<6;i++) que.push(i); cout<<que.front()<<endl<<que.back(); que.pop(); que.empty(); que.size(); pop 队 ...
分类:
其他好文 时间:
2020-03-22 13:47:26
阅读次数:
87
贪心,有一些点少不留意就会wa #include <iostream> #include <cstdio> #include <cstring> #include <limits> //#include <stack> #include<queue> #include <algorithm> #de ...
分类:
其他好文 时间:
2020-03-21 21:43:42
阅读次数:
64
2020年3月21日 Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) Push element x onto stack. pop() ...
分类:
其他好文 时间:
2020-03-21 21:26:35
阅读次数:
59
结构体+优先队列+贪心 #include <iostream> #include <cstdio> #include <cstring> #include <limits> //#include <stack> #include<queue> #include <algorithm> #define ...
分类:
其他好文 时间:
2020-03-21 21:23:32
阅读次数:
65
C++中的容器大致可以分为两个大类:顺序容器和关联容器。顺序容器中有包含有顺序容器适配器。 顺序容器:将单一类型元素聚集起来成为容器,然后根据位置来存储和访问这些元素。主要有vector、list、deque(双端队列)。顺序容器适配器:stack、queue和priority_queue。 关联容 ...
分类:
编程语言 时间:
2020-03-21 21:23:03
阅读次数:
84
#include<iostream> #include <stack> #include <algorithm> #include <string> using namespace std; typedef struct ListNode { int data; struct ListNode* n ...
分类:
其他好文 时间:
2020-03-21 21:21:36
阅读次数:
60
题目描述 An inorder binary tree traversal can be implemented in a non recursive way with a stack. For example, suppose that when a 6 node binary tree (wit ...
分类:
其他好文 时间:
2020-03-21 18:17:53
阅读次数:
52
方法1:利用stark的先进后出的特点 思路: 1.将字符串转换为字符型数组 2.遍历数组,入栈 Stark.pull() 3.出栈 Stark.pop(),利用Stringbuider.append拼接输出。 import java.util.Stack;public class Main { p ...
分类:
其他好文 时间:
2020-03-21 17:51:42
阅读次数:
65