Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

  • 复用 Array 动态数组实现栈的各种操作
public interface Stack<E> {
    int getSize();

    boolean isEmpty();

    void push(E e);

    E pop();

    E peek();
}

应用

  • 括号匹配
  • 系统调用栈
  • 编辑器 undo