diff --git a/searches/interpolation_search.py b/searches/interpolation_search.py index 329596d340a5..1204d2288879 100644 --- a/searches/interpolation_search.py +++ b/searches/interpolation_search.py @@ -120,14 +120,14 @@ def __assert_sorted(collection): target = int(target_input) """ - debug = 0 + debug = 1 if debug == 1: collection = [10,30,40,45,50,66,77,93] try: __assert_sorted(collection) except ValueError: sys.exit('Sequence must be ascending sorted to apply interpolation search') - target = 67 + target = 66 result = interpolation_search(collection, target) if result is not None: