From ba1a5916692e9d9e95314e0e0838d115e200a7ac Mon Sep 17 00:00:00 2001 From: linarphy Date: Tue, 9 May 2023 12:31:32 +0200 Subject: [PATCH] Fix typo --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 7b053d4..fc9f457 100644 --- a/utils.py +++ b/utils.py @@ -182,7 +182,7 @@ def consecutive( list_ ): index = last_consecutive( list_ ) if index == len( list_ ) - 1: return [ list_ ] - return consecutive( list_[ : i + 1 ] ) + consecutive( list_[ i + 1 : ] ) # happy recursion \o/ + return consecutive( list_[ : index + 1 ] ) + consecutive( list_[ index + 1 : ] ) # happy recursion \o/ def last_consecutive( list_ ): """ return the last index of the first consecutive list