Skip to content

Commit d1132f0

Browse files
refactor 6
1 parent cf8e109 commit d1132f0

File tree

1 file changed

+0
-17
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-17
lines changed

src/main/java/com/fishercoder/solutions/_6.java

-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 6. ZigZag Conversion
5-
*
6-
* The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this:
7-
* (you may want to display this pattern in a fixed font for better legibility)
8-
9-
P A H N
10-
A P L S I I G
11-
Y I R
12-
13-
And then read line by line: "PAHNAPLSIIGYIR"
14-
Write the code that will take a string and make this conversion given a number of rows:
15-
16-
string convert(string text, int nRows);
17-
convert("PAYPALISHIRING", 3) should return "PAHNAPLSIIGYIR".
18-
*/
19-
203
public class _6 {
214
public static class Solution1 {
225
public String convert(String s, int numRows) {

0 commit comments

Comments
 (0)