Write algorithm binary search and find the time complexity of that problem code example Example: binary search time complexity Average case:O(log n) Best case:O(1)