โ† Amazon questions

Find kth visited number in a spiral matrix traversal

Filed under Amazon

Given an N x N matrix where row i contains numbers from (i*N)+1 to (i+1)*N, find the kth number visited during a spiral traversal.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.