手写队列的时候,有时候要写成 head = 1, tail = 0,有时候又要写成 head = 0, tail = 0。有没有人解释一下有什么区别?
head = 1, tail = 0
head = 0, tail = 0