![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
章鱼四剑客
这个作者很懒,什么都没留下…
展开
-
树的遍历迭代方法
树的遍历迭代方法前序遍历迭代方法private void preOrder1(Node root){ if (root==null){ return; } //首先创建一个栈 Stack<Node> stack=new Stack<>(); stack.push(root);//将更节点入栈 while(!...原创 2019-06-17 22:20:03 · 1832 阅读 · 2 评论 -
链表
链表接口public interface LinkedList<E>{ void addFirst(E e); void add(int index,E e); void removeFirst(); void remove(int index); void remove(E e); boolean contains(E e); ...原创 2019-07-06 11:20:46 · 128 阅读 · 0 评论