0006. Zigzag Conversion

Writing a string in zigzag form and reading it row by row

Brute Force
Row-by-Row
Math-based
5x
Step: 0 / 0
Phase: Ready
Row: -
Direction: -
Ready. Press "Play" or "Step".
Algorithm Complexity
Simulate
O(n)
O(n) / O(n)
Math (Period)
O(n)
O(n) / O(n)