在JVM虚拟机规范中,Java虚拟机运行时数据区域除了程序计数器(Program Counter Register)外都有可能出现 的情况,使用Hotspot虚拟机简单的模拟堆栈内存溢出的场景,方便快速定位是什么区域的内存溢出。 堆 通过VM参数设置Java堆的大小,避免堆可扩展内存(设定 Xms和 ...
分类:
编程语言 时间:
2020-04-05 20:14:25
阅读次数:
68
要求 在链表中删除值为val的所有节点 示例 如 1->2->3->4->5->6->NULL,要求删除值为6的节点 返回1->2->3->4->5->NULL 思路 删除一般元素(包括最后一个元素) 删除第一个元素 实现 常规思路 1 #include <iostream> 2 using nam ...
分类:
其他好文 时间:
2020-04-05 09:55:01
阅读次数:
63
字典 Dictionary
集 HashSet/SortSet
有序列表 SortList
不变的集合 ImmutableArray
并发集合 ...
分类:
编程语言 时间:
2020-04-04 22:59:23
阅读次数:
132
Description Given a string which contains only lowercase letters, remove duplicate letters so that every letter appears once and only once. You must m ...
分类:
编程语言 时间:
2020-04-04 20:54:05
阅读次数:
76
The sequence of mm integers is called the permutation if it contains all integers from 11 to mm exactly once. The number mm is called the length of th ...
分类:
其他好文 时间:
2020-04-04 14:19:57
阅读次数:
98
Problem Description There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a ...
分类:
其他好文 时间:
2020-04-04 11:44:53
阅读次数:
65
常规配置 ================================================================= 默认监听器 基于证书的SSL / TLS支持 Pre shared key based SSL/TLS support 基于预共享密钥的SSL / TLS支持 ...
分类:
其他好文 时间:
2020-04-04 11:33:49
阅读次数:
85
Leetcode T350,求两个集合的交集,我的方法错误,但是错误在哪里。 1.学会了array如何转为list,其实还是一个个添加元素式转变最简单 ques:为什么要转变呢?其实自己就是认为在list里面可以去contains 一句话作为代码,所以自己去转变了 2.对于数组,直接是length属 ...
分类:
其他好文 时间:
2020-04-04 09:28:03
阅读次数:
57
import org.apache.commons.lang3.ArrayUtils; public static boolean useArrayUtils(String[] arr, String targetValue) { return ArrayUtils.contains(arr,tar ...
分类:
编程语言 时间:
2020-04-02 18:17:09
阅读次数:
181
This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu ...
分类:
其他好文 时间:
2020-04-01 13:05:16
阅读次数:
62