环境: 1 [root@gz01-nginx-proxy-master ~]# uname -r 2 3.10.0-693.el7.x86_64 3 [root@gz01-nginx-proxy-master ~]# cat /etc/redhat-release 4 CentOS Linux re ...
分类:
其他好文 时间:
2020-03-30 00:16:59
阅读次数:
91
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the ...
分类:
其他好文 时间:
2020-03-29 21:16:05
阅读次数:
58
(1)通过StringBuilder的reverse()方法,速度最快: 1 public class StringReverse { 2 public static void main(String[] args) { 3 String str="hello"; 4 System.out.prin ...
分类:
编程语言 时间:
2020-03-29 18:17:09
阅读次数:
77
一.测试类 public class Test02 { public void parameterTest(Map<Integer, Dog> map){ } public Map<Integer,Dog> returnTest(){ return new HashMap<Integer, Dog> ...
分类:
编程语言 时间:
2020-03-29 15:25:19
阅读次数:
83
题目链接 https://codeforces.com/contest/1188/problem/E 题解 我们可以发现,题目要求数的目标状态的个数,实际上就是在数操作序列(指每个气球操作的次数构成的序列,第 $i$ 个颜色操作 $b_i$ 次)的个数。可以发现如果给定了操作序列,每次一定是操作那个 ...
分类:
其他好文 时间:
2020-03-29 12:22:04
阅读次数:
46
Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The l ...
分类:
其他好文 时间:
2020-03-29 11:03:55
阅读次数:
74
加权轮询 后端集群每台机器都分配一个权重,权重高得会承担更多的流量,相反权重低的分配的流量也会少,这种策略允许后端集群机器配置差异化 java实现 多线程输出结果 ...
分类:
编程语言 时间:
2020-03-29 10:52:23
阅读次数:
65
package thread;import java.util.concurrent.*;/** * @auto dh * @create 2020-03-29-0:04 */class Th0009 implements Callable<Integer>{ private int sum=0; ...
分类:
编程语言 时间:
2020-03-29 01:38:58
阅读次数:
140
Problem Statement Snuke has decided to play a game using cards. He has a deck consisting of NN cards. On the ii -th card from the top, an integer AiAi ...
分类:
其他好文 时间:
2020-03-29 01:37:30
阅读次数:
90
[TOC] 一、排序操作 Collections提供了如下常用类方法用于对List集合进行排序: ★void reverse(List list):反转指定的List集合中的元素顺序。 ★void shuffle(List list):对Lsit集合中的元素进行随机排序(shuffle方法模仿了”洗 ...
分类:
其他好文 时间:
2020-03-28 20:22:07
阅读次数:
60