忘川彼岸|leetcode622_go_设计循环队列( 二 )

< 0 {prev = this.k - 1 } return this.queue[prev]}func (this *MyCircularQueue) IsEmpty() bool { return this.front == this.rear}func (this *MyCircularQueue) IsFull() bool { next := this.rear + 1 if next == this.k {next = 0 } return next == this.front}总结【忘川彼岸|leetcode622_go_设计循环队列】Medium题目 , 考察循环队列设计


推荐阅读