← Adobe questions

Print matrix in zig-zag order

Filed under Adobe

Write steps or pseudocode to traverse and print all elements of a 2D matrix in a zig-zag (or snake) order, where alternating rows are traversed in reverse directions.

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.