数据结构(二)——单链表(环)

1、环 标题   2、建立环 //创建环 public void createLoop(){ Entry cur = this.head; while(cur.next != null){ cur = cur.next; } Entry cur2 = this.head.next.next.next;
相关文章
相关标签/搜索