Backtrack outside for loop

couldn’t understand why are we backtracking outside the for loop, why not after the if loop?

hey @devastateddreamer, we backtrack here only when we check all possible combinations for current cell and if we are not finding any correct number for given i,j than make the cell 0 and return false.

If we get correct number for the cell i,j then program control had never reach this backtracking step and return true already.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.