From 1e59018be2b5a4413afbf3e471bca115cf8af262 Mon Sep 17 00:00:00 2001 From: debatranayak111 Date: Mon, 5 Oct 2026 15:56:31 +0530 Subject: [PATCH] Fix longest unique run --- python-open-source-challenge/issue-88.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-open-source-challenge/issue-88.py b/python-open-source-challenge/issue-88.py index 43d32d9..a042be7 100644 --- a/python-open-source-challenge/issue-88.py +++ b/python-open-source-challenge/issue-88.py @@ -17,10 +17,10 @@ def longest_unique_run(values): for value in values: # TODO: Check how the run changes when a duplicate appears. if value in current: - current = current[current.index(value):] + current = current[current.index(value) + 1 :] current.append(value) # TODO: Check when a new run replaces the best one. - if len(current) < len(best): + if len(current) > len(best): best = current[:] # TODO: Check behavior when the input is empty. return best