DSA
DSA copied to clipboard
spiral traversal of matrix
The spiral matrix problem, often referred to as "Spiral Order Matrix" or "Spiral Traversal of a Matrix," is a common coding interview question and a fundamental algorithm problem. The task is to traverse a 2D matrix in a spiral order, meaning you start at the top-left corner and move in a spiral pattern until you've visited all the elements.