当一个元素要入栈时,我们取当前辅助栈的栈顶存储的最小值,与当前元素比较得出最小值,将这个最小值插入辅助栈中(min_stack.push(min(x,min_stack.top())) 当一个元素要出栈时,我们把辅助栈的栈顶元素也一并弹出; 在任意一个时刻,栈内元素的最小值就存储在辅助栈的栈顶元素中 ...
分类:
其他好文 时间:
2020-05-13 15:22:21
阅读次数:
54
原因:我的系统是Windows Server 2012 R2 Standard首先我是想要安装SVN客户端,然后系统让我安装Windows Server 2012 R2 安装补丁KB2999226 思路:经过网上查找资料安装补丁KB2999226之前需要安装KB2919355,安装KB2919355 ...
(二层配置的是linuxbridge;l3 agent 提供路由 router 服务) 实验环境: 创建了4个网络 provider:flat网、外网 net1、net2、net3 均为 vxlan 网络 对应涉及5个虚拟机 provider-instance、self-instance 为分别指定 ...
分类:
其他好文 时间:
2020-05-13 13:46:36
阅读次数:
111
java.io.NotSerializableException: scala.collection.convert.Wrappers$MapWrapperSerialization stack: - object not serializable (class: scala.collection. ...
分类:
其他好文 时间:
2020-05-13 09:48:20
阅读次数:
95
答案我也是嫖的! https://blog.csdn.net/qq_37246345/article/details/103265037 1 import java.io.BufferedReader; 2 import java.io.BufferedWriter; 3 import java.i ...
分类:
编程语言 时间:
2020-05-13 09:47:06
阅读次数:
65
1 package com.yhqtv.demo04.Reader; 2 3 import java.io.FileNotFoundException; 4 import java.io.FileReader; 5 6 /* 7 * java.io.Reader:字符输入流,是字符输入流的最顶层的父 ...
分类:
其他好文 时间:
2020-05-13 09:34:54
阅读次数:
53
1 package com.yhqtv.demo02.InputStream; 2 3 import java.io.FileInputStream; 4 import java.io.FileNotFoundException; 5 import java.io.FileOutputStream; ...
分类:
其他好文 时间:
2020-05-12 20:39:17
阅读次数:
71
1. springboot中配置线程池 @Bean public ThreadPoolTaskExecutor commonThreadPool() { ThreadPoolTaskExecutor pool = new ThreadPoolTaskExecutor(); pool.setCoreP ...
分类:
编程语言 时间:
2020-05-12 20:29:21
阅读次数:
62
When does a C# Task actually start? Calling an async method returns a hot task, a task that has already been started. So there is no actual code neces ...
public static Map<String,String> loadDataFromFile() { Map<String,String> map = new ConcurrentHashMap<>(); try { File file = new File("filename.txt"); ...
分类:
其他好文 时间:
2020-05-12 11:45:24
阅读次数:
82