719. 找出第 k 小的距离对 思路: 首先采用了暴力求差值,11组数据超时,优化后利用map来求,结果在最后的两组超时。。然而还是要用二分写,二分差值,最小的为0,最大的是排完序后最后一个数的值减去第一个数的值,取mid,然后在原来数组里继续二分找有多少对差值cnt是小于等于mid的。 若对数c ...
分类:
其他好文 时间:
2020-06-26 14:32:06
阅读次数:
54
xtrabackup 备份 MySQL 8.0.20 时报错: 200626 08:40:59 Connecting to MySQL server host: localhost, user: root, password: set, port: 3306, socket: /data/mysql ...
分类:
其他好文 时间:
2020-06-26 12:40:56
阅读次数:
88
Rectangle Area (M) 题目 Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and ...
分类:
其他好文 时间:
2020-06-26 11:14:20
阅读次数:
61
Given a sorted array A of unique numbers, find the K-th missing number starting from the leftmost number of the array. Example 1: Input: A = [4,7,9,10 ...
分类:
其他好文 时间:
2020-06-26 10:52:26
阅读次数:
72
cat /etc/passwd查看文件内容: passwd文件存放在/etc目录下。这个文件存放着所有用户帐号的信息,包括用户名和密码,因此,它对系统来说是至关重要的。可以使用如下命令查看该文件:cat Passwd文件由许多条记录组成,每条记录占一行,记录了一个用户帐号的所有信息。每条记录由7个字 ...
分类:
其他好文 时间:
2020-06-26 10:33:59
阅读次数:
63
使用Stream已经快3年了,但是从未真正深入研究过Stream的底层实现。 今天开始把最近学到的Stream原理记录一下。 本篇文章简单描述一下自己对pipeline的理解。 基于下面一段代码: public static void main(String[] args) { List<Strin ...
分类:
其他好文 时间:
2020-06-26 01:36:40
阅读次数:
99
参考链接:https://blog.csdn.net/m15511023218/article/details/87920263 参考的主要代码: auto eth0iface eth0 inet staticaddress 192.168.3.90gateway 192.168.3.1netmas ...
分类:
其他好文 时间:
2020-06-25 23:04:52
阅读次数:
52
Substring with Concatenation of All Words (H) 题目 You are given a string, s, and a list of words, words, that are all of the same length. Find all star ...
分类:
其他好文 时间:
2020-06-25 21:20:39
阅读次数:
56
一、下载tomcat源码 https://github.com/apache/tomcat/tree/8.5.x 二、建立pom 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/PO ...
分类:
其他好文 时间:
2020-06-25 19:55:28
阅读次数:
77
详细详情:一直正常运行的CICD突然某一天出现错误,如标题所示。-牵扯到所有CICD,不仅影响一个。 排查流程: 1. 尝试在项目Nuget.config中增加v2版本如下:(无效) <?xml version="1.0" encoding="UTF-8"?><configuration> <pac ...
分类:
其他好文 时间:
2020-06-25 19:50:52
阅读次数:
56