参考链接: https://blog.csdn.net/Stream_who/article/details/95757844 ...
分类:
其他好文 时间:
2020-04-01 14:36:15
阅读次数:
64
703. Kth Largest Element in a Stream & c++ priority_queue & minHeap/maxHeap 相关链接 "leetcode" "c++ priority_queue cplusplus" "c++ priority_queue cnblog" ...
分类:
编程语言 时间:
2020-04-01 10:54:46
阅读次数:
71
两个星期以前,就有读者强烈要求我写一篇 Java Stream 流的文章,我说市面上不是已经有很多了吗,结果你猜他怎么说:“就想看你写的啊!”你看你看,多么苍白的喜欢啊。那就“勉为其难”写一篇吧,嘻嘻。 单从“Stream”这个单词上来看,它似乎和 java.io 包下的 InputStream 和 ...
分类:
编程语言 时间:
2020-04-01 10:40:31
阅读次数:
54
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2648 代码如下: 1 #include<iostream> 2 #include<map> 3 using namespace std; 4 map<string,int> mp; 5 string s ...
分类:
其他好文 时间:
2020-04-01 01:11:35
阅读次数:
73
1、基于ClassLoder读取配置文件 注意:该方式只能读取类路径下的配置文件,有局限但是如果配置文件在类路径下比较方便。 1 Properties properties = new Properties(); 2 // 使用ClassLoader加载properties配置文件生成对应的输入流 ...
分类:
编程语言 时间:
2020-03-31 18:56:05
阅读次数:
62
对比一下串行流和并行流的效率: /** * @author WGR * @create 2020/3/31 */ public class Demo07Parallel { private static final int times = 500000000; long start; @Before ...
分类:
其他好文 时间:
2020-03-31 18:53:57
阅读次数:
56
两个星期以前,就有读者强烈要求我写一篇 Java Stream 流的文章,我说市面上不是已经有很多了吗,结果你猜他怎么说:“就想看你写的啊!”你看你看,多么苍白的喜欢啊。那就“勉为其难”写一篇吧,嘻嘻。 单从“Stream”这个单词上来看,它似乎和 java.io 包下的 InputStream 和 ...
分类:
编程语言 时间:
2020-03-31 14:48:49
阅读次数:
71
1 #include "iostream" 2 #include "stdio.h" 3 using namespace std; 4 int w[105],val[105]; 5 int dp[105][1005]; 6 int main() 7 { 8 int t,m,res=-1; 9 sca ...
分类:
其他好文 时间:
2020-03-31 14:23:39
阅读次数:
65
import socket def main(): """简单web服务器""" # 1、创建套间字 web_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) web_socket.setsockopt(socket.SOL_SOC ...
分类:
Web程序 时间:
2020-03-31 01:20:44
阅读次数:
79