Given an array of unique integers salary where salary[i] is the salary of the employee i. Return the average salary of employees excluding the minimum ...
分类:
其他好文 时间:
2020-06-29 09:59:02
阅读次数:
56
Jmeter安装后初次启动报错Invalid maximum heap size: -Xmx4096m 解决办法: 找到jmeter包的目录文件,如: E:\ST_test\jmeter\apache-jmeter-3.1\bin,编辑jmeter.bat文件,找到设置堆内存大小地方: set HE ...
分类:
其他好文 时间:
2020-06-26 23:53:02
阅读次数:
136
题意:一道水题,给出一个序列,要求找出一个子序列,(子序列的要求是:满足正负正负、或者负正负正,以此类推),使得该子序列长度最长和值最大。注意看样例(第一个位置无论正负都得取,因为要保证长度最长)。 PS:但是感觉我这次败给水题了,这题只有800分,我找bug找了2h,加油吧小伙子! 思路: 直接根 ...
分类:
其他好文 时间:
2020-06-26 22:37:03
阅读次数:
70
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
给定一个下标从0开始的数列,
最多旋转一次子数列(将某一段子数列倒置),
问所有偶数位置上的元素和的最大值。 ...
分类:
其他好文 时间:
2020-06-26 10:22:12
阅读次数:
216
线程池(重点) 一:线程池:三大方法,七大参数,四种拒绝策略 池化技术: 01:程序的运行,本质 :占用系统的资源! 优化资源的使用! =>池化技术 02:线程池、连接池、内存池、对象池///......创建、销毁。 十分浪费资源 03:池化技术:事先准备好一些资源,有人要用,就来我这里拿,用完之后 ...
分类:
编程语言 时间:
2020-06-26 10:20:28
阅读次数:
66
https://leetcode-cn.com/problems/wiggle-subsequence/ 如果连续数字之间的差严格地在正数和负数之间交替,则数字序列称为摆动序列。第一个差(如果存在的话)可能是正数或负数。少于两个元素的序列也是摆动序列。 例如, [1,7,4,9,2,5] 是一个摆动 ...
分类:
其他好文 时间:
2020-06-25 17:16:25
阅读次数:
53
题意: 给定 $0,1$ 构成的串 \(s,t\),若能通过 \(s\) 串旋转的方式,进行字母重排,让其变成 \(t\) 串,输出最小旋转次数,反之,则输出 \(-1\)。 $1≤n≤10^6$ 分析: 要想有解,肯定两个串中的 $0,1$ 的个数要相等。 考虑把 \(s\) 串中和 \(t\) ...
分类:
其他好文 时间:
2020-06-25 12:16:24
阅读次数:
54
防抖 任务频繁触发的情况下,只有任务触发的间隔超过指定间隔的时候,任务才会执行。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-wi ...
分类:
其他好文 时间:
2020-06-24 23:41:58
阅读次数:
70
题目如下: Given the array of integers nums, you will choose two different indices i and j of that array. Return the maximum value of (nums[i]-1)*(nums[j]- ...
分类:
其他好文 时间:
2020-06-22 15:42:18
阅读次数:
67