MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Cyclic

Struct Cyclic

structure/linkedlist/cyclic.go:6–9  ·  view source on GitHub ↗

Cyclic Struct which cycles the linked list in this implementation.

Source from the content-addressed store, hash-verified

4
5// Cyclic Struct which cycles the linked list in this implementation.
6type Cyclic[T any] struct {
7 Size int
8 Head *Node[T]
9}
10
11// Create new list.
12func NewCyclic[T any]() *Cyclic[T] {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected