摘要: 1.用数组实现栈和队列 (1)栈 int arr[] = new int[5]; int index = -1; public void push(int val) { if(index == 5) { throw new RuntimeException(""); }else { arr[++ i 阅读全文
posted @ 2021-10-11 16:39 现在开始努力 阅读(22) 评论(0) 推荐(0)