Coding · Medium · Pro
Spiral order traversal of a matrix
CodingMatrixSenior
Approach
- Maintain top/bottom/left/right bounds.
- Traverse top row, right col, bottom row, left col; shrink bounds.
Java Solution
Java
List<Integer> spiral…Coding · Medium · Pro
List<Integer> spiral…