2018年7月24日

摘要: 数组实现循环队列public class ArrayQueue { public Integer arr[]; public Integer start; //删除时start指针向前走一步。 public Integer end; //插入时end指针向前走一步。 public int size; 阅读全文
posted @ 2018-07-24 07:55 刘文涛123 阅读(268) 评论(0) 推荐(0)
摘要: 用数组实现栈public class ArrayStack { Integer arr[]; Integer size ; public ArrayStack(int initsize){ //对数组进行初始化,即对栈进行初始化 if(initsize<0) throw new IllegalArg 阅读全文
posted @ 2018-07-24 07:48 刘文涛123 阅读(92) 评论(0) 推荐(0)

导航