ds/impl_queue_linked_list.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]()),
}
}