diff --git a/Leetcode/Summary_Ranges/README.md b/Leetcode/Summary_Ranges/README.md index c4cac369..661f3a37 100644 --- a/Leetcode/Summary_Ranges/README.md +++ b/Leetcode/Summary_Ranges/README.md @@ -94,7 +94,7 @@ class Solution(object): for num in nums: if num - 1 not in r: r = [] - ranges.append(r) + ranges.append(r), r[1:] = num, return ["->".join(map(str, r)) for r in ranges] ```