摘要:
mysql too many connections -- 最大连接数 show variables like 'max_connections'; -- 最大返回数 Max_used_connections/max_connections * 100% 应该要大于10% show global s 阅读全文
摘要:
leetcode 每日一题 1470. 重新排列数组 class Solution { public int[] shuffle(int[] nums, int n) { int[] arr = new int[nums.length]; for (int i = 0; i < nums.lengt 阅读全文
摘要:
多线程读取文件,map或list存储出现次数,并创建对象封装,最小根堆找出前10个商品 public class Demo { private static final String regex = ","; public static void main(String[] args) throws 阅读全文
摘要:
最小堆 PriorityQueue 实现 public static void main(String[] args) { long l = System.currentTimeMillis(); int num = 100000000; PriorityQueue<Integer> priorit 阅读全文