Kindly tell if I am missing a corner case with anticloclwise printing of spiral array
A few Testcases not passing
your code has issues for corner cases.
try to run your algorithm for the case like
3 6
81 82 83 84 85 1
11 12 13 14 15 2
21 22 23 24 25 3
you will understand the problem in your code.
I corrected the code, please check modified code at: https://ide.codingblocks.com/s/209786
thanks
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.