Zigzag Conversion

1 min read
๐ง Problem
Zigzag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) And then read line by line: "PAHNAPLSIIGYIR" Write the code that will take a string and make this conversion given a number of rows:
๐ท๏ธ Tags
string
๐ Difficulty
Medium
โ
Success Rate: 41.4%
๐ฅ Submissions: 1,804,469
๐ Accepted: 747,158
โค๏ธ Reactions
๐ Likes: 3570
๐ Dislikes: 8234
๐ก Hints
๐ Similar Questions
Leetcode Link : Zigzag Conversion
0
Subscribe to my newsletter
Read articles from RedAurther directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
