Hi, I've done this depth-firs, but now doing it breadth-first is giving me some trouble. I'm pretty sure I'm queueing up right, etc... But, I think the checkvalid function is off a little. Can somebody give some suggestions? Thanks. Code:
#include <queue>
#include <iostream>
#include <math.h>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.