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
const 命令 const 声明一个只读变量,声明之后不允许改变。意味着,一旦声明必须初始化,否则会报错。 基本用法: const PI = "3.1415926"; PI // 3.1415926 const MY_AGE; // SyntaxError: Missing initializer ...
分类:
其他好文 时间:
2020-06-24 09:17:48
阅读次数:
86
package LeetCode_268 /** * 268. Missing Number * https://leetcode.com/problems/missing-number/description/ * * Given an array containing n distinct nu ...
分类:
其他好文 时间:
2020-06-24 00:06:34
阅读次数:
63
基于上篇文档安装主节点:安装kubenet-dashboard发现会报错kubectlapply-fhttp://mirror.faasx.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yamled/kubernetes-dashboard.yaml可以先下载这个dashboard.yamlw
分类:
其他好文 时间:
2020-06-23 15:11:25
阅读次数:
59
问题概述 公司里的Jenkins构建某个前端项目一直报错,查看日志发现是在 npm i 阶段,错误如下: npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for us ...
分类:
Web程序 时间:
2020-06-22 19:35:07
阅读次数:
186
cd /etc/yum.repos.d vim CentOS-Debuginfo.repo enable = 1 yum install glibc debuginfo-install glibc.x86_64 0:2.17-307.el7.1 ...
分类:
数据库 时间:
2020-06-21 17:52:26
阅读次数:
108
一、技术总结 即判断给出一串数字中缺少的最小正整数 直接可以遍历判断n个数字中是否在一串数字中是否出现,如果没有直接输出 但是会出现一种情况,是恰好给出的数字是1~n,这是需要再判断一下了遍历的次数是否等于n,如果是的话直接输出n+1 二、参考代码 #include<iostream> #inclu ...
分类:
其他好文 时间:
2020-06-20 22:22:15
阅读次数:
64
代码: #coding=utf-8 import requests import json url='http://127.0.0.1:4444/wd/hub/session' data = json.dump({ 'Capabilities':{ 'browserName':'Edge' } }) ...
分类:
其他好文 时间:
2020-06-18 01:24:39
阅读次数:
225
Common Compress Formation .zip .gz .bz2 .tar .tar.gz .tar.gz2 zip & unzip (both compress and package but not recommended in linux) // zip [option] des ...
分类:
系统相关 时间:
2020-06-16 20:25:00
阅读次数:
56
用scrapy下载文件时报错:ValueError: Missing scheme in request url: h 通过分析发现,iamges_urls_field字段的参数为列表或其他可迭代对象,而我传入的是一个字符串,所有报错。 将出入的值修改为列表即可解决报错 ...
分类:
Web程序 时间:
2020-06-16 20:17:09
阅读次数:
70