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

Function Stooge

sort/stooge_sort.go:28–34  ·  view source on GitHub ↗
(arr []T)

Source from the content-addressed store, hash-verified

26}
27
28func Stooge[T constraints.Ordered](arr []T) []T {
29 if len(arr) == 0 {
30 return arr
31 }
32
33 return innerStooge(arr, 0, int32(len(arr)-1))
34}

Callers

nothing calls this directly

Calls 1

innerStoogeFunction · 0.85

Tested by

no test coverage detected