3 votes

Breadth-first search implementation for finding edge of grid c++

Tests Some automated testing lets people have confidence in changing the code. Tests are also definition of correctness - without tests it is hard to understand what is the intended behavior of the ...
Incomputable's user avatar
  • 9,374
1 vote

Order of values in dfs and bfs

Visited? What is the point of visited=None in your function signatures? It looks like you're setting up for a recursive call, where the standard caller doesn't ...
AJNeufeld's user avatar
  • 33.3k

Only top scored, non community-wiki answers of a minimum length are eligible