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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user