如果对于一个已经创建好的链表进行如下操作: singleLinkedList.head = singleLinkedList.head.next; singleLinkedList.list(); 将链表头从第一个元素指向了第二个元素,那么链表头的元素会被回收。此时head指向第二个元素,第一个元素 Read More
posted @ 2021-04-20 10:51 imissinstagram Views(92) Comments(0) Diggs(0)