2020年8月5日
摘要: 1、用两个栈实现队列 add:压入栈后pushToPop poll:pushToPop后弹出栈 peek:pushToPop后得到队首元素 1 public class TwoStacksQueue { 2 public Stack<Integer> stackPush; 3 public Stac 阅读全文
posted @ 2020-08-05 21:46 小小字节 阅读(106) 评论(0) 推荐(0) 编辑