ds/impl_queue_linked_list.go

9 lines
194 B
Go
Raw Normal View History

2023-01-20 21:48:46 +01:00
package ds
type LinkedListQueue[T any] ListQueue[T]
func NewLinkedListQueue[T any]() *LinkedListQueue[T] {
stack := NewListQueue[T](new(LinkedList[T]))
return (*LinkedListQueue[T])(stack)
}