摘要:
public class MyQueue { private int[] array; private int front; private int rear; public MyQueue(int capacity){ this.array=new int[capacity]; } public 阅读全文
摘要:
1 class Node{ 2 int data; 3 Node next; 4 Node(int data){ 5 this.data=data; 6 } 7 } 8 public class MyNodes { 9 private Node head; 10 private Node last; 阅读全文
摘要:
public class MyArray { private int[] array; private int size; public MyArray(int capacity){ this.array=new int[capacity]; size=0; } public void insert 阅读全文