mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 03:27:07 +00:00
Time: 87 ms (69.14%), Space: 13.7 MB (58.56%) - LeetHub
This commit is contained in:
@@ -26,7 +26,7 @@ class Solution(object):
|
|||||||
|
|
||||||
# Catch end of string
|
# Catch end of string
|
||||||
if diagonalIndex >= len(s):
|
if diagonalIndex >= len(s):
|
||||||
continue # Maybe break should work
|
break
|
||||||
|
|
||||||
# Gets letters on diagonals
|
# Gets letters on diagonals
|
||||||
output += s[diagonalIndex]
|
output += s[diagonalIndex]
|
||||||
|
|||||||
Reference in New Issue
Block a user