From fb85b62559eeee536d87bed06391328cbe70de39 Mon Sep 17 00:00:00 2001 From: Srihari Thyagarajan <57552973+Haleshot@users.noreply.github.com> Date: Sat, 21 Sep 2024 22:37:09 +0530 Subject: [PATCH] Update README.md --- Leetcode/Summary_Ranges/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] ```