Skip to content

Commit a95df12

Browse files
Update
1 parent 344e599 commit a95df12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Chapter10/interpolation_search.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def interpolation_search(ordered_list, search_value):
2222

2323

2424

25-
store = [44, 60, 75, 100, 120, 230, 250]
26-
a = interpolation_search(store, 120)
25+
list1 = [44, 60, 75, 100, 120, 230, 250]
26+
a = interpolation_search(list1, 120)
2727
print("Index position of value 2 is ", a)
2828

29-
print(nearest_mid(store, 0, 6, 120))
29+
print(nearest_mid(list1, 0, 6, 120))

0 commit comments

Comments
 (0)