• I appreciate the advice, I'm considering these interview practice ๐Ÿ™‚

    Would that not be more like a BFS though? I'm going to visit each neighbour before I visit any neighbours of neighbours right? Suppose you could insert into the stack instead. Not that it matters whether we use BFS/DFS in the problems we've had so far

About

Avatar for frankenbike @frankenbike started