14 lines
250 B
Go
14 lines
250 B
Go
package ds
|
|
|
|
type LinkedListQueue[T any] struct {
|
|
*ListQueue[T]
|
|
}
|
|
|
|
var _ Queue[int] = &LinkedListQueue[int]{}
|
|
|
|
func NewLinkedListQueue[T any]() *LinkedListQueue[T] {
|
|
return &LinkedListQueue[T]{
|
|
ListQueue: NewListQueue[T](NewLinkedList[T]()),
|
|
}
|
|
}
|