what is the need of doing soln[i][j]=0 in the backtracking step?
since the soln we are currently working on is restricted to that function, soln[i][j] will automatically be 0 beacuse we are not passing it by reference right?
Regarding the implementation
hello @hv439606
arrays are always passed as pointer so whatever changes we will make on array inside function will be reflected in original array.
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.