arnab2001 / DSA

Collection of DSA problems and solutions
37 stars 185 forks source link

spiral traversal of matrix #402

Open 007AnupamSharma opened 1 year ago

007AnupamSharma commented 1 year ago

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.