- 博客(2)
- 收藏
- 关注
原创 Java弱引用(WeakReference)
最近在看ThreadLocal,看到WeakReference,学习一下 ExecutorService executorService = Executors.newCachedThreadPool(); Student student = new Student(); WeakReference<Student> weakReference = new WeakReference...
2018-12-13 23:00:16 100
原创 二叉树前序、中序、后序非递归遍历【JAVA】
记录LeetCode刷题,可能有待改进 前序非递归 public List<Integer> preorderTraversal(TreeNode root) { List<Integer> list = new ArrayList<>(); if (root == null) return list; Stack<TreeNode
2018-11-25 23:27:18 120
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人