We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf8e109 commit d1132f0Copy full SHA for d1132f0
src/main/java/com/fishercoder/solutions/_6.java
@@ -1,22 +1,5 @@
1
package com.fishercoder.solutions;
2
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
20
public class _6 {
21
public static class Solution1 {
22
public String convert(String s, int numRows) {
0 commit comments