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