diff --git a/utils/containers/linked_list/types.go b/utils/containers/linked_list/types.go new file mode 100644 index 0000000..a73c8dd --- /dev/null +++ b/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] +}