摘要:
二维 List 自定义排序 使用lambda表达式 import java.util.*; public class Main { public static void main(String[] args) { List<List<Integer>> list = new LinkedList<> 阅读全文
摘要:
Java遍历Map集合简单例子 import java.util.*; public class Main { public static void main(String[] args) { HashMap<Integer, Integer> map = new HashMap<>(); map. 阅读全文
摘要:
nSum问题模板 两数之和、三数之和、四数之和。 private List<List<Integer>> nSum(int[] nums, long target, int start, int n) { int len = nums.length; List<List<Integer>> res 阅读全文