All Tracks/workshop binary search/
Đang tải...
Hướng dẫn thử thách
1 / 16

Step 1

In a previous lesson, you learned about binary search and how it differs from linear search. In this workshop, you will put that into practice by building a binary search algorithm. To begin, create a `binary_search` function with a `search_list` and `value` parameters. `search_list` is the list of elements the function will search within, and `value` is the target the function will try to find within the `search_list`. Add the `pass` keyword inside the function for now so the test can pass.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.py
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.