![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
Dcwjh
这个作者很懒,什么都没留下…
展开
-
数据结构——栈和队列
1. JDK:Stack()数组实现栈public static class ArrayStack { private Integer[] arr; private Integer size; public ArrayStack(int initSize) { if (initSize < 0) { throw new IllegalArgumentE...原创 2019-10-17 22:43:02 · 194 阅读 · 0 评论 -
数据结构——二叉树
遍历实现二叉树的先序、中序、后序遍历递归://根左右 public static void preOrder(Node head){ if(head == null) return; System.out.println(head.data); preOrder(head.left); preOr...原创 2020-03-08 08:58:14 · 194 阅读 · 0 评论