โ† Amazon questions

Print Complex String in Up-Down Pattern

Filed under Amazon

Given a string and a number of rows, print or format the characters in a zigzag (up-and-down diagonal) pattern across rows, then read row by row.

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.