https://www.geeksforgeeks.org/print-matrix-antispiral-form/
https://stackoverflow.com/questions/35900519/inside-out-spiral-matrix-java
http://qa.geeksforgeeks.org/7017/qa.geeksforgeeks.org/7017/print-spiral-matrix-inside-out.html
Given a 2D array, the task is to print matrix in anti spiral form:
Input : arr[][4] = {1, 2, 3, 4 5, 6, 7, 8 9, 10, 11, 12 13, 14, 15, 16}; Output : 10 11 7 6 5 9 13 14 15 16 12 8 4 3 2 1
The idea is simple, we traverse matrix in spiral form and put all traversed elements in a stack. Finally one by one elements from stack and print them
https://stackoverflow.com/questions/35900519/inside-out-spiral-matrix-java
http://qa.geeksforgeeks.org/7017/qa.geeksforgeeks.org/7017/print-spiral-matrix-inside-out.html