Skip to content

[FEATURE REQUEST] <Zigzag Conversion> #4449

@md-shamim-ahmad

Description

@md-shamim-ahmad

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 <= 1000
  • s consists of English letters (lower-case and upper-case), ',' and '.'
  • 1 <= numRows <= 1000

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions