(target int, nodes []int)
| 7 | package graph |
| 8 | |
| 9 | func GetIdx(target int, nodes []int) int { |
| 10 | for i := 0; i < len(nodes); i++ { |
| 11 | if nodes[i] == target { |
| 12 | return i |
| 13 | } |
| 14 | } |
| 15 | return -1 |
| 16 | } |
| 17 | |
| 18 | func NotExist(target int, slice []int) bool { |
| 19 | for i := 0; i < len(slice); i++ { |
no outgoing calls
no test coverage detected