This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Write a function that takes an ordered list of numbers (a list where the elements are in order from smallest to | |
largest) and another number. The function decides whether or not the given number is inside the list and returns | |
(then prints) an appropriate boolean. | |
Extras: Use binary search. | |
NOTE: I created an option to compare the time taken by three different search methods. | |
""" | |
import random, time, sys |