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