Remeber how BFS checks if node is unexplored

I keep forgetting how BFS checks if the node is unexplored.
Like sometimes I just forget about it and turn it into a DFS and when I rememmber I want to check if the node is in the queue.
Just remember you only go down a row when you are down with the current row
Seriously why can’t I remember this.

remember this line

Remeber how BFS checks if node is unexplored

https://chiatzenw.github.io/2022/03/14/white/

Author

ChiatzenW

Posted on

2022-03-14

Updated on

2022-03-14

Licensed under

Comments