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

Function NotExist

graph/depthfirstsearch.go:18–25  ·  view source on GitHub ↗
(target int, slice []int)

Source from the content-addressed store, hash-verified

16}
17
18func NotExist(target int, slice []int) bool {
19 for i := 0; i < len(slice); i++ {
20 if slice[i] == target {
21 return false
22 }
23 }
24 return true
25}
26
27func DepthFirstSearchHelper(start, end int, nodes []int, edges [][]bool, showroute bool) ([]int, bool) {
28 var route []int

Callers 1

DepthFirstSearchHelperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected