Search⌘ K
AI Features

Zigzag Conversion

Zigzag Conversion gives you a string and a row count, then asks you to return the characters after they are written in a zigzag and read row by row from top to bottom.

Statement

Given a string s and an integer numRows, rearrange the characters of s by writing them in a zigzag pattern across numRows rows, ...