Documentation
¶
Overview ¶
Package queue implements:
a a new type named Stack, which is a slice of ints **Enqueue** method to add an element at the end of the Queue **Dequeue** method to remove the element from the the front of the Queue
Package queue implements:
a a new type named Stack, which is a slice of ints **Enqueue** method to add an element at the end of the Queue **Dequeue** method to remove the element from the the front of the Queue
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue []int
Queue represent a stack
type QueueString ¶
type QueueString []string
Queue represent a stack
func (*QueueString) Dequeue ¶
func (q *QueueString) Dequeue() (string, bool)
Dequeue remove an element at the front of the queue
func (*QueueString) Enqueue ¶
func (q *QueueString) Enqueue(element string)
Enqueue insert an elememnt at the back of the queue
Click to show internal directories.
Click to hide internal directories.