Spiral print anti clockwise

code->https://ide.codingblocks.com/s/405272
prob->https://hack.codingblocks.com/app/contests/1975/411/problem

Not printing last number .How to correct that??

Hey @kaustub
CHANGES IN COMMENTS

Why in lines 17 and 24 of your code it is (=) it will repeat the numbers if it is not square matrix

try urself it won’t :slight_smile: