Go Reference Type: Slices vs. Maps
Recently, I reviewed some coding interview questions. There was a problem with which solution used DFS over a graph with recursive calls. My solution was in Go and has a recursive function:
func dfsVisit(curr int, graph map[int][]int,
currPath *[]int, visited map[int]struct{}) {
...
}
* curr represents the current