ACW Spiral Print (2D - Arrays )

Can you please tell me where I am making errors in the algorithm?

Link:https://ide.codingblocks.com/s/647966

hi @aryangoel971_1b263dfa601b9409
in both the if statements instead if simply > make it >= , your code will work fine and pass all test cases…
corrected code -->

thank you very much for your help , much appreciated

1 Like

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.