Sunday, September 29, 2019

C++: Print matrix in counter-clockwise spiral form

We are given a matrix of any dimension and we need to print the matrix elements in counter clockwise direction.


Output: 1 5 9 10 11 12 8 4 3 2 6 7

No comments:

Post a Comment