If we want to enqueue someone, that is, add them to the line, we have to traverse down the linked list until we hit the end, and then change that next pointer to point to the new person.
如果将某人入队,也就是将他添加行中,必须向下遍历链表直末尾,然后将 next 指针更改为指向新人。
关注我们的微信
下载手机客户端
划词翻译
详细解释