Could you please tell me why the code shows segmentation fault when I run it.
Code : https://onlinegdb.com/ymX1ZmBP7
Code shows Run error
new code: https://onlinegdb.com/wDnEOEKuW, this code works fine in my local machine but gives run error on CB
Modified Code
you missed this case
if soln[i][j] == 1 then you have to return false
because you have come here before
Thank you so much !!
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.