โ† Zoho questions

Print matrix in zig-zag fashion

Filed under Zoho

Given an M x N matrix, traverse and print its elements in a zig-zag (diagonal) order starting from [0,0].

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

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