arrays-Spiral print Anticlockwise

testCase #4 not passed
https://ide.codingblocks.com/s/52674

Hi ankush,

Change < to <= in line if(startCol<endCol){ and if(startRow<endRow){
Hit Like if you get it!
Cheers :smiley:

if i print the spiral clock wise then again #4 give run time error https://hack.codingblocks.com/contests/c/452/440

code is: https://ide.codingblocks.com/s/52777

Hey Ankush, it is mentioned that integers M and N denoting the size of the matrix and Both M and N are less than 1000, but you are taking the 2D array of max size 10*10 only, So, read the constraints carefully.

@ankush9818744825 please check constraint properly.

Hey Tushar, i guess i have suggested the same thing :slight_smile: