摘要:
PART I: DList: 1 public DList() { 2 // Your solution here. Similar to Homework 4, but now you need to specify 3 // the `list' field (second parameter) 阅读全文
摘要:
荒废已久啦~~回归打卡 DListNode.java: package hw4; /* DList.java */ /** * A DList is a mutable doubly-linked list ADT. Its implementation is * circularly-linked 阅读全文
摘要:
PART I smoosh多用几个循环就可以了,创建一个新的数组用于临时存储。 public static void smoosh(int[] ints) { int[] reads= new int[ints.length]; for (int i=0;i<ints.length;i++) { r 阅读全文
摘要:
PART I: 没什么好说的。。第一个前向后向添加都行,第二个前面加一个后面加一个就行了 代码及结果: public static void main (String[] args) { SList l1=new SList(); l1.insertFront(new Integer(12)); l 阅读全文