Base case is not clear since there are no fixed moves that can define base case.Please help with the code.only a single test case is passed.
Funky chess board problem
In some questions where you have 3-4 different states for something, you can keep them as 1,2,3,4 or anything you like.
Have a look at this code, the way you can do that
I got that …the problem is in my loop.
Can you please help me identify why I can’t use loop insteed?
WHich loop?
Tell me the line number.
Line number 32. wrong answer is coming when I replaced those 8 possible ways with a loop.I am unable to figure out why?
Check values then. Else don’t use loop and write manually.
Do it the way your code gets accepted
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.