给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 方法1:暴力解法 很显然会报 超过时间限制。 /** * @param {number[]} nums * @return {number} */ var maxSubArray = functi ...
分类:
其他好文 时间:
2021-05-24 16:50:25
阅读次数:
0
Here’s to the crazy ones. The misfits. The rebels. The troublemakers. The round pegs in the square holes. The ones who see things differently. They’re ...
分类:
其他好文 时间:
2021-05-24 16:46:31
阅读次数:
0
隐式类型转换 1. isNaN()判断数据类型是不是NaN 返回值为boolean,执行过程中是将数据放到number方法中 isNaN('123'); // 结果:false 2. ++ -- +、-(一元正负运算符) var a = 10; console.log(-a); //结果:-10; ...
分类:
Web程序 时间:
2021-05-24 15:52:51
阅读次数:
0
// 1 Number.EPSILON 是 js 表示最小精度 // console.log(Number.EPSILON); // 2.220446049250313e-16 // console.log(0.1 + 0.2); // 0.30000000000000004 // // 判断两个数 ...
分类:
其他好文 时间:
2021-05-24 15:45:29
阅读次数:
0
大家好,我是痞子衡,是正经搞技术的痞子。今天痞子衡给大家介绍的是导致串行NOR Flash在i.MXRT下无法正常下载/启动的常见因素之Write Protection。 i.MXRT系列MCU发布已两年多了,基于i.MXRT的客户产品也越来越多,可以说是全面开花了。痞子衡作为i.MXRT产品线的系 ...
分类:
其他好文 时间:
2021-05-24 14:13:19
阅读次数:
0
Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, ...
分类:
其他好文 时间:
2021-05-24 13:17:05
阅读次数:
0
for 是支持迭代的一种通用结构。最有效,最灵活 for 的循环次数在执行权确定 package com.sf.struct; public class For01 { //for 是支持迭代的一种通用结构。最有效,最灵活 //for 的循环次数在执行权确定 public static void m ...
分类:
编程语言 时间:
2021-05-24 13:00:45
阅读次数:
0
1.下载vue-cli3脚手架后,执行npm run serve 正常。执行npm run build 后,打开index.html文件后,console报错,找不到js文件。index.html文件里显示 We're sorry but vue-hello-world-ui-select does ...
分类:
其他好文 时间:
2021-05-24 12:59:50
阅读次数:
0
Given a sequence of K integers { N?1??, N?2??, ..., N?K?? }. A continuous subsequence is defined to be { N?i??, N?i+1??, ..., N?j?? } where 1≤i≤j≤K. T ...
分类:
其他好文 时间:
2021-05-24 12:48:45
阅读次数:
0
由于多线程爬取数据比单线程的效率要高,尤其对于爬取数据量大的情况,效果更好,所以这次采用多线程进行爬取。具体代码和流程如下: import math import re from concurrent.futures import ThreadPoolExecutor import requests ...
分类:
编程语言 时间:
2021-05-24 12:04:44
阅读次数:
0