← ALL NOTES
String

6. Zigzag Conversion

The obvious read is "simulate the zigzag": build a grid, walk down and diagonally back up, read it off row by row. Skip all of it — the character positions are pure arithmetic. The pattern repeats…

Loading…