9 lines
194 B
Go
9 lines
194 B
Go
package ds
|
|
|
|
type LinkedListQueue[T any] ListQueue[T]
|
|
|
|
func NewLinkedListQueue[T any]() *LinkedListQueue[T] {
|
|
stack := NewListQueue[T](new(LinkedList[T]))
|
|
return (*LinkedListQueue[T])(stack)
|
|
}
|