摘要: 1. 最不推荐 LinkedList<Integer> stack1 = new LinkedList<>();stack1.addLast(1);stack1.addLast(2);stack1.addLast(3);while (!stack1.isEmpty()) { System.out.p 阅读全文
posted @ 2023-03-18 18:44 Minde 阅读(63) 评论(0) 推荐(0)
摘要: 1. 简单使用 // 默认是小跟堆排序,也就是头是最小的PriorityQueue<Integer> ascPriorityQueue = new PriorityQueue<>();ascPriorityQueue.add(2);ascPriorityQueue.add(7);ascPriorit 阅读全文
posted @ 2023-03-18 17:17 Minde 阅读(47) 评论(0) 推荐(0)