โ† Amazon questions

Kth Element in Spiral Matrix

Filed under Amazon

Given an n x n matrix filled with numbers 1 to n^2 in row-major order, find the Kth element encountered 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.