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
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
获取表格行数 $("#tableId").find("td").length; 获取当前行的列数 $("#exampleTable tr").each(function(rowIndex) { // 遍历表格行 var colLength = $(this).find("td").length; / ...
分类:
其他好文 时间:
2020-06-25 15:18:50
阅读次数:
347
selenium定位type属性 driver.find_element_by_css_selector('input[type="password"]').send_keys('Password') from selenium import webdriver #用来驱动浏览器的 from sel ...
分类:
其他好文 时间:
2020-06-25 14:13:22
阅读次数:
99
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and ...
分类:
其他好文 时间:
2020-06-25 12:23:09
阅读次数:
74
Find the Duplicate Number (M) 题目 Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least ...
分类:
其他好文 时间:
2020-06-25 09:20:33
阅读次数:
64