输入一个链表,按链表从尾到头的顺序返回一个ArrayList。 方法一:递归 import java.util.ArrayList; public class Solution { ArrayList<Integer> ret = new ArrayList<Integer>(); public A ...
分类:
其他好文 时间:
2020-05-03 18:55:41
阅读次数:
61
题意:http://acm.hdu.edu.cn/showproblem.php?pid=6513 你最多选两个矩阵反转,问你最后的情况数。 思路:https://www.cnblogs.com/asdfsag/p/10753244.html 很到位了。 const int N=(int)1e2+1 ...
分类:
其他好文 时间:
2020-05-03 18:48:10
阅读次数:
71
自动装箱与缓存 现象 有以下代码: 我们知道,第3、4行发生了自动装箱,生成了Integer对象,并将对象的引用赋值给i1和i2,“==”比较的是对象的引用,控制台输出看,i1和i2保存了同一个Integer对象的引用。 下面对上述代码进行反编译: 从反编译结果看,Integer类自动装箱执行了va ...
分类:
编程语言 时间:
2020-05-03 18:43:28
阅读次数:
58
1 2. 3. 4. 5. 6. 7. 8. 9. 答案 ...
分类:
编程语言 时间:
2020-05-03 18:42:07
阅读次数:
58
You are given an m * n matrix, mat, and an integer k, which has its rows sorted in non-decreasing order. You are allowed to choose exactly 1 element f ...
分类:
其他好文 时间:
2020-05-03 18:14:33
阅读次数:
59
Integer的三三两两 题目 一句话总结 从IntegerCache讲起 Integer执行一次完整过程示例 Integer自动拆装箱 Integer运算 一些例题 原生int和Integer比较 Integer相互比较 注 ...
分类:
其他好文 时间:
2020-05-03 18:11:52
阅读次数:
43
1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Given an array of integers nums and an integer limit, return the size ...
分类:
其他好文 时间:
2020-05-03 14:56:30
阅读次数:
60
Given a non-empty binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any ...
分类:
其他好文 时间:
2020-05-03 14:27:36
阅读次数:
67
概述 Redis 是一个完全开源免费的、遵守BSD 协议的、内存中的数据结构存储,它既可以作为数据库,也可以作为缓存和消息代理。因其性能优异等优势,目前已被很多企业所使用,但通常在企业中我们会将其作为缓存来使用。Spring Boot 对 Redis也提供了自动配置的支持,接下来本小节将讲解如何在S ...
分类:
编程语言 时间:
2020-05-02 23:05:35
阅读次数:
79