- 博客(2)
- 收藏
- 关注
转载 二叉树遍历
public interface Tree<E> { boolean isEmpty(); E getRoot(); E getParent(int nodeNum); E getLeftSibling(int nodeNum); E getRightSibling(int nodeNum); TreeNode<E> crea...
2018-04-23 20:09:18
121
原创 使用数组实现stack
public class MyStack { private int top = -1;//索引 private Object[] arr = null;//底层数组 private MyStack() { arr = new Object[10]; } private MyStack(int capacity) { ...
2018-04-01 22:18:02
396
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人