Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IQueue ¶
type IQueue interface { Enqueue(interface{}) Dequeue() (interface{}, error) Front() (interface{}, error) Size() int IsEmpty() bool }
IQueue defines the queue interface
type QueueA ¶
type QueueA struct {
// contains filtered or unexported fields
}
QueueA implemented using array
type QueueL ¶
type QueueL struct {
// contains filtered or unexported fields
}
QueueL implemented using linked list
type QueueS ¶
type QueueS struct {
// contains filtered or unexported fields
}
QueueS implemented using 2 stacks
Click to show internal directories.
Click to hide internal directories.