Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当头部位于第三个节点时,如何删除链表中的第二个节点?
如果列表是双向链表,这是可能的。
head->prev->prev->next = head; head->prev = head->prev->prev;