摘要: 链表学的有点懵。总之就是SList,DList的head是随着插入的对象变化的,而循环链表的head是恒定的,在循环链表的任何操作中,都不能出现给head赋值的语句。 非循环的DList,在size==1的时候,head=tail; head.next=null; tail.pre=null 。此时 阅读全文
posted @ 2017-07-23 12:36 Iris_w 阅读(154) 评论(0) 推荐(0) 编辑
摘要: import java.lang.reflect.Array; /* SList.java */ /** * The SList class is a singly-linked implementation of the linked list * abstraction. SLists are 阅读全文
posted @ 2017-07-23 00:32 Iris_w 阅读(203) 评论(0) 推荐(0) 编辑