Skip to content

Commit cc22fdc

Browse files
authored
Update 0006_Zigzag_Conversion.py
1 parent c58dfac commit cc22fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/0006_Zigzag_Conversion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def convert(self, s: str, numRows: int) -> str:
55
if numRows < 2 or numRows >= len(s):
66
return s
77

8-
rows = [''] * numRows # create an array of length numRows and fill with ''
8+
rows = [''] * numRows # create an array of length numRows and fill with ''
99
currRow, direction = 0, 1
1010

1111
# save characters in the correct rows, find the correct rows by currRow

0 commit comments

Comments
 (0)