3 ms·
BFS isn't really suited for recursive solutions. Trying to do so usually amounts to trying to write BFS with a stack only.
by scarmig 8y ago
BFS isn't really suited for recursive solutions. Trying to do so usually amounts to trying to write BFS with a stack only.