โ† CodingMart questions

Print string in a zigzag manner

Filed under CodingMart

The question

Given a string and the number of rows n, print the string in a zigzag pattern across n rows.

No write-up yet. Related questions below have one.

Related CodingMart questions

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