Goldman Sachs logoGoldman Sachs
Coding·60 minMembers

Spiral Matrix Traversal

Members only

Output the elements of an `m × n` matrix in spiral order, walking from the outside layer to the innermost. A warm-up problem in GSAM Infra phone screens.

SWE
Infra Eng
grid
simulation
easy
Frequency
Single report
Last asked
2024-11-15
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...