一、技术总结 本题为哈希映射的相关题目 因为一般的哈希表都是使用素数tsize进行作为最大空间,所需需要先编写一个素数判断函数,关键点是从i = 2开始遍历,只需要遍历到i * ii ? x即可; 哈希表本质是用最大的存储空间tsize取余,进行存储,但是会可能出现相同的余数,那么会发生冲突,这时就 ...
分类:
其他好文 时间:
2020-06-20 22:05:08
阅读次数:
56
#前言:基于inotify的三种实时同步方法 inotify 脚本部署 (inotifly脚本无法由systemctl启动,只能手动/脚本启停,pkill sersync2,sersync2 -dro /usr/bin/xxxxx) lsync 软件部署 sersync 软件二进制部署。 #几大实时 ...
分类:
其他好文 时间:
2020-06-20 21:11:12
阅读次数:
98
代码: 结果: PS E:\30.Study\30.自动化测试\99.零基础入门 Python Web 自动化测试\10.seleniumCodePractice> & "C:/Program Files/Python38/python.exe" "e:/30.Study/30.自动化测试/99.零 ...
分类:
编程语言 时间:
2020-06-20 11:09:48
阅读次数:
76
密码规则:八位以及八位以上, 必须是数字,大小写字母,或者特殊字符四选三。 HTML代码: <div class="form-group"> <label class="col-sm-4 control-label is-required">登录密码:</label> <div class="col ...
分类:
其他好文 时间:
2020-06-19 20:43:49
阅读次数:
89
postgresql + pgpool 构建容灾高可用集群(数据同步流复制/主备自动切换) 整个流程分为以下几部分: postgresql-12 安装 postgresql-12 流复制配置以及验证 pgpoll-ii-4.1 安装 pgpool-ii-4.1 主备机器自动切换配置 pgpoll-i ...
分类:
数据库 时间:
2020-06-19 14:08:50
阅读次数:
61
安装完Mysql之后使用root账户登录出现1698错误 pi@raspberrypi:~ $ mysql -uroot ERROR 1698 (28000): Access denied for user 'root'@'localhost' pi@raspberrypi:~ $ 查看Mysql官 ...
分类:
数据库 时间:
2020-06-19 13:47:45
阅读次数:
68
靠 class Solution { public int maxProfit(int[] prices) { int profit=0; for(int i=1;i<prices.length;i++){ int tmp=prices[i]-prices[i-1]; if(tmp>0) profi ...
分类:
其他好文 时间:
2020-06-18 19:30:19
阅读次数:
40
Description HostAgent fails to establish SSH Connection to RedHat EL7 hostThe error reported when the agent attempts to connect to the host matches th ...
分类:
系统相关 时间:
2020-06-18 19:16:06
阅读次数:
459
规则: 对文章中连续数字超过3位的进行****显示; 实现效果: 实现方式: computed:{ formatText(){ return val=>{ let str = val let reg = /\d{4,}/g let matchArr = val.match(reg) if(match ...
分类:
其他好文 时间:
2020-06-18 10:34:16
阅读次数:
60
题目描述 编写一个高效的算法来搜索 m x n 矩阵 matrix 中的一个目标值 target。该矩阵具有以下特性: 每行的元素从左到右升序排列。 每列的元素从上到下升序排列。 示例: 现有矩阵 matrix 如下: [ [1, 4, 7, 11, 15], [2, 5, 8, 12, 19], ...
分类:
编程语言 时间:
2020-06-18 01:12:50
阅读次数:
62