Finally if none of these return False
, we are sure that a Queen at that row
and col
position is a valid state. So we will return true.
xxxxxxxxxx
// Everything is valid, so return true
return true;
OUTPUT
:001 > Cmd/Ctrl-Enter to run, Cmd/Ctrl-/ to comment