mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 16:54:50 +08:00
更改 0024.两两交换链表中的节点.md C语言格式
This commit is contained in:
@ -107,7 +107,9 @@ struct ListNode* swapPairs(struct ListNode* head){
|
||||
newHead->next = head;
|
||||
return newHead;
|
||||
}
|
||||
```
|
||||
|
||||
```c
|
||||
//迭代版本
|
||||
struct ListNode* swapPairs(struct ListNode* head){
|
||||
//使用双指针避免使用中间变量
|
||||
|
Reference in New Issue
Block a user