Coding Question:
Problem: Swap a 2D (square) array's values across the diagonal: [0,0], [1,1], [2,2], etc.
The Matrix:
Before Matrix Swap:
After Matrix Swap:
Problem: Swap a 2D (square) array's values across the diagonal: [0,0], [1,1], [2,2], etc.
Before Matrix Swap:
After Matrix Swap: