设置ai-1节点为m,ai+1为节点n 将m指向下一个插入的节点 m -> n 用字母x表示插入位置的后一个节点 x = m -> next m -> next = n n -> next = x
用字母x表示要删除的节点 x = m -> next m -> next = x -> next; free(x)
Powered by: 博客园 Copyright © 2024 20221301 Powered by .NET 9.0 on Kubernetes