← Adobe questions

Print matrix in spiral order

Filed under Adobe · Also reported at [24]7 Innovation Labs, Aethereus Consulting, OYO, Paltech, Technovert

Write pseudocode to traverse and print a given 2D matrix in spiral order (outer boundary moving clockwise, then inner layers).

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 Adobe questions

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