Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
8
func
fillList(list *Cyclic[int], n int) {
9
for
i := 1; i <= n; i++ {
10
list.Add(i)
11
}
12
}
13
14
func
TestAdd(t *testing.T) {
15
list := NewCyclic[int]()
Callers
6
TestAdd
Function · 0.85
TestWalk
Function · 0.85
TestRotate
Function · 0.85
TestDelete
Function · 0.85
TestDestroy
Function · 0.85
TestJosephusProblem
Function · 0.85
Calls
1
Add
Method · 0.65
Tested by
no test coverage detected