ByteDance / TikTok logoByteDance / TikTok
Coding·60 minMembers

Spiral Matrix (LC 54) with Follow-Up Constraints

Members only

A TikTok e-commerce backend intern coding problem on traversing a 2D matrix in a fixed order. The familiar opening is followed by interviewer-added constraints that rule out the first approach most candidates reach for, and boundary handling on degenerate shapes is where time disappears.

SWE
array
grid
simulation
medium
Frequency
Single report
Last asked
2026-09-28
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...