Skip to content

增加0024:两两交换链表中的节点的python的双指针解法#2994

Open
Dalbergiaman wants to merge 2 commits intoyoungyangyang04:masterfrom
Dalbergiaman:master
Open

增加0024:两两交换链表中的节点的python的双指针解法#2994
Dalbergiaman wants to merge 2 commits intoyoungyangyang04:masterfrom
Dalbergiaman:master

Conversation

@Dalbergiaman
Copy link

@Dalbergiaman Dalbergiaman commented Jan 31, 2026

增加0024题:两两交换链表的双指针的解法,不需要和原有第二个解法一样使用.next.next.next导致不直观,且简化了循环条件。

链表总结篇.md 虚拟头节点写错了 写成了虚拟头结点

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stop it all

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't wat none of it any.ore please

### 虚拟头结点
### 虚拟头节点

在[链表:听说用虚拟头节点会方便很多?](https://programmercarl.com/0203.移除链表元素.html)中,我们讲解了链表操作中一个非常重要的技巧:虚拟头节点。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stop it all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants