SuriyaaVijay / code-dump

Make your first PR! Add your profile, a blog, or any program under any language (hello-world program to anything) or update the existing one. Just make sure to add the file under the correct directory. Happy open source contributing!
https://hacktoberfest.com/
113 stars 786 forks source link

Zigzag Conversion #37

Closed talha-ansarii closed 1 year ago

talha-ansarii commented 1 year ago

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)

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 a string and make this conversion given a number of rows:

string convert(string s, int numRows);

Example 1:

Input: s = "PAYPALISHIRING", numRows = 3 Output: "PAHNAPLSIIGYIR" Example 2:

Input: s = "PAYPALISHIRING", numRows = 4 Output: "PINALSIGYAHRPI" Explanation: P I N A L S I G Y A H R P I Example 3:

Input: s = "A", numRows = 1 Output: "A"

Constraints:

1 <= s.length <= 1000 s consists of English letters (lower-case and upper-case), ',' and '.'. 1 <= numRows <= 1000

I want to solve this problem under hacktoberfest @SuriyaaVijay please assign me this issue

talha-ansarii commented 1 year ago

Starred and forked they repo already

SuriyaaVijay commented 1 year ago

assigned

ghostbadfame commented 1 year ago

I am interested can you please assign me this issue for hacktoberfest 2023

Shikhar2702 commented 1 year ago

@SuriyaaVijay please assign me this issue

ritik-sri commented 1 year ago

@SuriyaaVijay please assign me this issue

Gyanshu-Kumar commented 1 year ago

Hi Can You Assign This issue to me

ADNAAN18 commented 1 year ago

Please assign this issue to me. I can provide the solution with given constraints in detail at every step.

panditakshay402 commented 1 year ago

hii @SuriyaaVijay @ghostbadfame @ADNAAN18 @ritik-sri @Gyanshu-Kumar , kindly assign this issue to me.

Ashima2003 commented 1 year ago

I wish to contribute. Kindly assign this to me.

ANAGHARAK commented 1 year ago

Heyy, kindly assign this issue to me, I will write a optimized code for it

SuriyaaVijay commented 1 year ago

assigned

garvit0908 commented 1 year ago

hello , Can you please assign this issue to me...I will try to code it in a better way

ADNAAN18 commented 1 year ago

@SuriyaaVijay could you please accept my pull request?

ADNAAN18 commented 1 year ago

@SuriyaaVijay could you please accept my pull request it's been a long time since I posted the solution for the issue provided and this would be my first PR.