Technical screening rounds evaluate memory allocation, time complexity analysis, and pointer manipulation without executing code.
Optimal search in a sorted array.
Occurs with poor pivot selection in already sorted data.
Ensures O(log N) lookup, insertion, and deletion.
def mystery(n):
count = 0
i = 1
while i < n:
count += 1
i *= 2
return count
print(mystery(32))