Browse Source

add a lot

master
realxlfd 2 months ago
parent
commit
71434ddc3c
  1. 12
      utils/containers/linked_list/types.go

12
utils/containers/linked_list/types.go

@ -0,0 +1,12 @@
package llist
type LinkedList[T any] struct {
size uint
head *Node[T]
tail *Node[T]
}
type Node[T any] struct {
elem T
next *Node[T]
}
Loading…
Cancel
Save