Zigzag Conversion

RedAurtherRedAurther
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

0
Subscribe to my newsletter

Read articles from RedAurther directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

RedAurther
RedAurther