Spiral Print Clockwise

Hi!, I am getting 1 wrong answer test case in this problem. I have followed the same approach that sir did like first printing the boundaries of the matrix and then coming inside.

Code Link: https://ide.codingblocks.com/s/663484

Can you kindly look into the problem, please
Thank You

hi @Vinayak-Bhardwaj,
write <= in if conditions

Thank you @talhashamim001

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.