P
Poornima
Hello
Let A be an array of n elements.Procedure which takes this array as i/p
and produce a matrix which shuold be spiral in nature i.i
if A = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
7 8 9 10
6 1 2 11
5 4 3 12
16 15 14 13
if n is not a full square then dummy elements can be included to make
the o/p matrix complete.
can any one of you help me in how to write the above in C
Thanks In Advance
Poornima
Let A be an array of n elements.Procedure which takes this array as i/p
and produce a matrix which shuold be spiral in nature i.i
if A = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
7 8 9 10
6 1 2 11
5 4 3 12
16 15 14 13
if n is not a full square then dummy elements can be included to make
the o/p matrix complete.
can any one of you help me in how to write the above in C
Thanks In Advance
Poornima