We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2922e1 commit 989868cCopy full SHA for 989868c
src/main/scala/g0001_0100/s0006_zigzag_conversion/Solution.scala
@@ -1,9 +1,9 @@
1
package g0001_0100.s0006_zigzag_conversion
2
3
-import scala.collection.mutable
4
-
5
// #Medium #String #2023_11_09_Time_542_ms_(85.71%)_Space_55.7_MB_(90.48%)
6
+import scala.collection.mutable
+
7
object Solution {
8
def convert(s: String, numRows: Int): String = {
9
if (numRows == 1) return s
0 commit comments