MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / fillList

Function fillList

structure/linkedlist/cyclic_test.go:8–12  ·  view source on GitHub ↗
(list *Cyclic[int], n int)

Source from the content-addressed store, hash-verified

6)
7
8func fillList(list *Cyclic[int], n int) {
9 for i := 1; i <= n; i++ {
10 list.Add(i)
11 }
12}
13
14func TestAdd(t *testing.T) {
15 list := NewCyclic[int]()

Callers 6

TestAddFunction · 0.85
TestWalkFunction · 0.85
TestRotateFunction · 0.85
TestDeleteFunction · 0.85
TestDestroyFunction · 0.85
TestJosephusProblemFunction · 0.85

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected