So this linked list happened to be circular, but it could also have been terminated by using a next pointer value of 0 -- the null value -- which would indicate we've reached the end of the list.
所以个链表恰好是循环的,但它也可以通过使用 next 指针值 0——空值——来终止,表明我们已经到达了链表的末尾。
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 指针更改为指向新人。