April 17, 2022

Node coordinate overwritten in BFS

(I’m using C) I’m writing a BFS algorithm for a 2d maze array. I use a struct to represent a node in my queue struct. In my node struct, I have a pointer to store a previous node, its distance from th

Read More