Skip to content

Commit def3123

Browse files
committed
Runtime: 38 ms (Top 76.97%) | Memory: 13.8 MB (Top 98.42%)
1 parent adc020f commit def3123

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/algorithms/S/Summary Ranges/Summary Ranges.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
# Runtime: 38 ms (Top 76.97%) | Memory: 13.8 MB (Top 98.42%)
2+
13
class Solution(object):
24
def summaryRanges(self, nums):
3-
5+
46
if len(nums) == 0:
57
return []
6-
8+
79
l, r = 0, 0
810
res = []
911

@@ -23,4 +25,4 @@ def summaryRanges(self, nums):
2325
l=r
2426
r+=1
2527

26-
return res
28+
return res

0 commit comments

Comments
 (0)