Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircularQueue ¶
type CircularQueue struct {
// contains filtered or unexported fields
}
CircularQueue 循环队列
func NewCircularQueue ¶
func NewCircularQueue(capacity int) *CircularQueue
func (*CircularQueue) Dequeue ¶
func (cq *CircularQueue) Dequeue() (int, bool)
func (*CircularQueue) Enqueue ¶
func (cq *CircularQueue) Enqueue(value int) bool
func (*CircularQueue) Front ¶
func (cq *CircularQueue) Front() (int, bool)
func (*CircularQueue) IsEmpty ¶
func (cq *CircularQueue) IsEmpty() bool
func (*CircularQueue) IsFull ¶
func (cq *CircularQueue) IsFull() bool
Click to show internal directories.
Click to hide internal directories.