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 指针更改为指新人。
关注我们的微信
下载手机客户端
划词翻译
详细解释