1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 15:12:26 +08:00

feat: add LinkedQueue

This commit is contained in:
dudaodong
2022-02-11 10:46:48 +08:00
parent f551c56921
commit 43fb907a81
3 changed files with 189 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ func NewStackNode[T any](value T) *StackNode[T] {
// QueueNode is a node in a queue, which have a Value and Next pointer points to next node in the queue.
type QueueNode[T any] struct {
Value T
Next *StackNode[T]
Next *QueueNode[T]
}
// NewQueueNode return a QueueNode pointer