ds/impl_queue_linked_list.go

14 lines
266 B
Go

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