Temu / Pinduoduo logoTemu / Pinduoduo
CodingMembers

Spiral Matrix Generation

Members only

Generate an `m x n` matrix in the LC 59 spiral-construction family. A follow-up introduces `-1` cells that also force a direction change; clarify the fill convention, how blocked cells are supplied, a...

SWE
grid
simulation
medium
Frequency
Low
Last asked
2026-08-27
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...