From dac99c0fa02dc52390e1fc40061ee3da547fb090 Mon Sep 17 00:00:00 2001 From: raj_mathe Date: Tue, 26 Oct 2021 16:16:17 +0200 Subject: [PATCH] master > master: code - minor --- code/algorithms/search/binary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/algorithms/search/binary.py b/code/algorithms/search/binary.py index a6aa89a..16a2055 100644 --- a/code/algorithms/search/binary.py +++ b/code/algorithms/search/binary.py @@ -55,7 +55,7 @@ def BinarySearch(L: List[int], x: int) -> int: logDebug('x in Position m gefunden'); return m; elif x < L[m]: - logDebug('Suche in L[0], L[1], ..., L[m] fortsetzen, m = {}.'.format(m)); + logDebug('Suche in L[0], L[1], ..., L[m-1] fortsetzen, m = {}.'.format(m)); index = BinarySearch(L=L[:m], x=x); return index; else: # x > L[m]