Skip to content

Commit e16910b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 429154a commit e16910b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

searches/interpolation_search_recursive.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ def interpolation_search_recursive(arr, low, high, x):
1414
arr = [10, 20, 30, 40, 50, 60, 70]
1515
x = 50
1616
result = interpolation_search_recursive(arr, 0, len(arr) - 1, x)
17-
print(f"Element {x} found at index: {result}" if result != -1 else "Element not found.")
17+
print(
18+
f"Element {x} found at index: {result}"
19+
if result != -1
20+
else "Element not found."
21+
)

searches/meta_binary_search.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ def meta_binary_search(arr, target):
1515
arr = [2, 5, 7, 9, 14, 18, 21, 25]
1616
target = 18
1717
result = meta_binary_search(arr, target)
18-
print(f"Element {target} found at index: {result}" if result != -1 else "Element not found.")
18+
print(
19+
f"Element {target} found at index: {result}"
20+
if result != -1
21+
else "Element not found."
22+
)

0 commit comments

Comments
 (0)