← OYO questions

Zigzag conversion of string

Filed under OYO · Also reported at ZopSmart

The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: P A H N A P L S I I G Y I R. And then read line by line: "PAHNAPLSIIGYIR". Write the code that will take…

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 OYO questions

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