Skip to content

Commit 0ea58c1

Browse files
committed
fix -Changed the - to _ for modules name.- improve -Made the search_algorithm directory in tests/ directory and wrote the binary search test.
1 parent d1ef9f5 commit 0ea58c1

File tree

8 files changed

+47
-0
lines changed

8 files changed

+47
-0
lines changed

search_algorithm/__init__.py

Whitespace-only changes.

search-algorithm/binary_search.py renamed to search_algorithm/binary_search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ def binary_search(array: list[int], target: int) -> str:
1414

1515
return "Your target isn't in the array."
1616

17+
print(binary_search([1, 2, 4, 7, 9, 12, 32, 45, 47, 64, 78, 89, 90],
18+
78))
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/search_algorithm/__init__.py

Whitespace-only changes.

tests/search_algorithm/test_binary_search.py

Lines changed: 45 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)