hi
i want a java source code for spiral matix
if we give a input matrix as
1 2 3
4 5 6
7 8 9
so the output matrix should be
2 3 4
5 6 7
8 9 1
Or
9 1 2
3 4 5
6 7 8
i hope you will help for this.....
i want a java source code for spiral matix
if we give a input matrix as
1 2 3
4 5 6
7 8 9
so the output matrix should be
2 3 4
5 6 7
8 9 1
Or
9 1 2
3 4 5
6 7 8
i hope you will help for this.....
Comment