https://www.acwing.com/problem/content/1139/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:
其他好文 时间:
2021-02-15 11:53:52
阅读次数:
0
https://www.acwing.com/problem/content/1133/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:
其他好文 时间:
2021-02-15 11:53:38
阅读次数:
0
https://www.acwing.com/problem/content/1136/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:
其他好文 时间:
2021-02-15 11:53:26
阅读次数:
0
给你一个整型数组 nums ,在数组中找出由三个数组成的最大乘积,并输出这个乘积。 示例 1: 输入:nums = [1,2,3] 输出:6 示例 2: 输入:nums = [1,2,3,4] 输出:24 示例 3: 输入:nums = [-1,-2,-3] 输出:-6 提示: 3 <= nums. ...
分类:
其他好文 时间:
2021-02-15 11:53:07
阅读次数:
0
flask版本0.12.5 运行时会报以上错误,原因是因为werkzeug的版本大于等于1.x版本。 解决办法,降低werkzeug的版本即可 pip uninstall Werkzeug pip install Werkzeug==0.16.1 ...
分类:
其他好文 时间:
2021-02-15 11:52:49
阅读次数:
0
Markdown学习 标题 #+ +标题 一级标题 ##+ +标题 二级标题 …… 字体 hello,world! 两个*中间字体为加粗 hello,world! 一个*中间字体为斜体 hello,world! 三个*中间字体为斜体加粗 hello,world! 两个~ 引用 可爱的人 >+ +引用 ...
分类:
其他好文 时间:
2021-02-15 11:52:23
阅读次数:
0
Copy List with Random Pointer (M) 题目 A linked list is given such that each node contains an additional random pointer which could point to any node in ...
分类:
其他好文 时间:
2021-02-15 11:52:08
阅读次数:
0
一、基础组件 export interface BaseProps { name: string; } export interface BaseState { age: number; } export class BaseComp<P extends BaseProps = any, S ext ...
分类:
其他好文 时间:
2021-02-15 11:51:28
阅读次数:
0
一、定义 考虑这样一个需求:绘制矩形、圆形、三角形这三种图案。按照面向对象的理念,我们至少需要个具体类,对应三种不同的图形。 // 抽象形状类IShape class IShape { public: void draw(); }; // 三个具体形状类:矩形、圆形、三角形 class Rectan ...
分类:
其他好文 时间:
2021-02-15 11:50:55
阅读次数:
0
题意 如题目所示 思路 遍历字符串建立一个哈希表来统计每个字符出现的次数,然后再从头遍历字符串进行查询即可 代码 class Solution { public: char firstUniqChar(string s) { if(s.empty()) { return ' '; } unorder ...
分类:
其他好文 时间:
2021-02-15 11:50:39
阅读次数:
0
一、定义与特点 组合(Composite Pattern)模式的定义:有时又叫作整体-部分模式,是用于把一组相似的对象当作一个单一的对象。组合模式是用于整体与部分的结构,当整体与部分有相似的结构,在操作时可以被一致对待时,就可以使用组合模式。例如: 文件夹和子文件夹的关系:文件夹中可以存放文件,也可 ...
分类:
其他好文 时间:
2021-02-15 11:50:21
阅读次数:
0
在实际项目中,Mycat 服务也需要考虑高可用性,如果 Mycat 所在服务器出现宕机,或 Mycat 服务故障,需要有备机提供服务,需要考虑 Mycat 集群。 6.1、高可用方案 我们可以使用 HAProxy + Keepalived配合两台Mycat搭起Mycat集群,实现高可用性。HAPro ...
分类:
其他好文 时间:
2021-02-15 11:50:00
阅读次数:
0
#include<bits/stdc++.h> using namespace std; const int maxn=1e5+100; const int inf=1e9; int n,m,x; int dep[maxn];//节点在第几层 int num[maxn];//每一层的节点个数 int ...
分类:
其他好文 时间:
2021-02-15 11:49:10
阅读次数:
0
《Hadoop全权威指南第三版(原版)》 链接: https://pan.baidu.com/s/1O0AwkvstyRdB69Tiw8o7Ww 密码: 29li 有问题拿不到直接联系作者哦! 大数据越来越热。Hadoop技术是大数据技术的基础。 掌握了大数据技术,就意味着可以轻松找到高薪工作。 人 ...
分类:
其他好文 时间:
2021-02-15 11:48:45
阅读次数:
0
0x00 实验环境 攻击机:Win 10 靶机也可作为攻击机:Ubuntu18 (docker搭建的vulhub靶场) 0x01 影响版本 Apache ActiveMQ 5.13.0之前的5.x版本 0x02 漏洞复现 (1)实验环境:docker运行的vulhub漏洞环境首先,可直接访问到页面的 ...
分类:
其他好文 时间:
2021-02-15 11:48:02
阅读次数:
0
在set的基础上,增加了一个值,set k1 v1 zset k1 score v1 1.利用zadd 命令添加一个值 127.0.0.1:6379> zadd myset 1 one (integer) 1 2.利用zadd命令添加多个值 127.0.0.1:6379> zadd myset 2 ...
分类:
其他好文 时间:
2021-02-15 11:47:43
阅读次数:
0
原题 1 class Solution: 2 def summaryRanges(self, nums: List[int]) -> List[str]: 3 left,right,lens,ans = 0,0,len(nums),[] 4 while left < lens: 5 right = ...
分类:
其他好文 时间:
2021-02-15 11:47:09
阅读次数:
0