-
Notifications
You must be signed in to change notification settings - Fork 20.8k
Closed
Labels
Description
What would you like to Propose?
We can add the Zigzag Conversion in misc section.
Problem Statement - Write the code that will take a string and make this conversion given a number of rows in a zigzag pattern.
Input: s = "PAYPALISHIRING", numRows = 4
Output: "PINALSIGYAHRPI"
Explanation:
P I N
A L S I G
Y A H R
P I
Issue details
The algorithm wukk convert the given string s in a zigzag pattern and store the ans into a string and hence, return the string.
1 <= s.length <= 1000sconsists of English letters (lower-case and upper-case),','and'.'1 <= numRows <= 1000
Additional Information
No response