firstly tell me u r that cman?
ya spiral matrix is like as i have given inthe question.in it i f the input is 4,then it will print the numers in 4 row and 4 column.just like a coil structure.
it will print 1 2 3 4,then it will go to 4th column and print 5
and so on…….in my previous post u can c that.although it seems not clear in it.
try to understand that matrix by observing the figure u can understand