摘要: java栈实现 数组实现 Stack类 class Stack { private int maxSize; private int[] stack; private int top = -1; public Stack(int maxSize) { this.maxSize = maxSize; 阅读全文
posted @ 2022-03-27 09:30 CoderCatIce 阅读(92) 评论(0) 推荐(0) 编辑
摘要: joseph问题 单向环形链表 节点类 class Node { public int id; public Node next; @Override public String toString() { return "Node{" + "id=" + id + '}'; } public Nod 阅读全文
posted @ 2022-03-27 08:13 CoderCatIce 阅读(23) 评论(0) 推荐(0) 编辑