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
使用Stream已经快3年了,但是从未真正深入研究过Stream的底层实现。 今天开始把最近学到的Stream原理记录一下。 本篇文章简单描述一下自己对pipeline的理解。 基于下面一段代码: public static void main(String[] args) { List<Strin ...
分类:
其他好文 时间:
2020-06-26 01:36:40
阅读次数:
99
准备所需JAR包 编写配置文件 db.properties: jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/db_mybatis jdbc.username=root jdbc.password=root ...
分类:
编程语言 时间:
2020-06-25 23:19:32
阅读次数:
73
在连接数据库配置都没错,jar包也有,但是还是报 Could not create connection to database server.错误,那是因为mysql8.0版本的使用的数据库连接字符串不一样,而且还对时区有要求,引用下面的连接即可 url: jdbc:mysql://localho ...
分类:
数据库 时间:
2020-06-25 23:05:47
阅读次数:
137
# 计算器: C:\Users\del>adb shell dumpsys window w |findstr \/ |findstr name= # mSurface=Surface(name=com.youba.calculate/com.youba.calculate.MainActivity ...
分类:
移动开发 时间:
2020-06-25 21:41:10
阅读次数:
94
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
详细详情:一直正常运行的CICD突然某一天出现错误,如标题所示。-牵扯到所有CICD,不仅影响一个。 排查流程: 1. 尝试在项目Nuget.config中增加v2版本如下:(无效) <?xml version="1.0" encoding="UTF-8"?><configuration> <pac ...
分类:
其他好文 时间:
2020-06-25 19:50:52
阅读次数:
56
//二分查找法,返回最接近的位置和实际位置 function binary_find(id,hasSortArr){ let l=0,r=hasSortArr.length; let index=-1; while(r-l>0){ const m=(l+r)>>1; const mid=hasSor ...
分类:
编程语言 时间:
2020-06-25 17:48:53
阅读次数:
87
哈希表 开放寻址法: 找到初位置, 如果该位置已经有元素, 在其下一个位置放置 代码模板 int find(int x) { int t = (x % N + N) % N; while (h[t] != null && h[t] != x) { t ++ ; if (t == N) t = 0; ...
分类:
其他好文 时间:
2020-06-25 17:45:13
阅读次数:
49
课程设计必备之数据库操作代码模板 日常总结知识点,加深自身理解,帮助他人学习,欢迎关注我! 学计算机专业的大学生们必定会遇到各种各样的课程设计,C语言课程设计、C++课程设计、Java课程设计、数据库课程设计等等。C/C++大多数高校会将其作为先修课程,在大一就开始安排课程,也有助于理解编程的基本思 ...
分类:
数据库 时间:
2020-06-25 16:00:01
阅读次数:
52