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
|
||||
if diagonalIndex >= len(s):
|
||||
continue # Maybe break should work
|
||||
break
|
||||
|
||||
# Gets letters on diagonals
|
||||
output += s[diagonalIndex]
|
||||
|
||||
Reference in New Issue
Block a user