Where is error in my code
@deepgarg46 First of all very sorry for the late reply. Now you have to make your function such that it doesn’t recheck the cell which is already checked. To prevent this your function should return a boolean type which will tell us if the answer has been found or not.Also add a condition to go to new row if current row columns are completed. Also in the display function add a space after every print.Your new code will look like this :
(to get the changes refer comments) :
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.