摘要: 即用数组和链表实现栈 // 基于数组实现的顺序栈 public class ArrayStack { private String[] item;//用于存储数据的数组 private int n;//栈的大小 private int count;//栈中数据的多少 public ArrayStac 阅读全文
posted @ 2018-10-11 18:10 ZECDLLG 阅读(251) 评论(0) 推荐(0) 编辑
摘要: public class MiddleNode { public Node middle(Node headNode) { if (headNode == null) { System.out.println("this is no node in this list"); return null; 阅读全文
posted @ 2018-10-11 15:40 ZECDLLG 阅读(171) 评论(0) 推荐(0) 编辑