example

Sai_kiran_rachakonda · June 14, 2022
def binsearch(x):
    for i in range(len(x)):
        if i not in x:
            print(i)
            break




binsearch([1,2,4,5,6,8,9,10,11,12,13])
Output

Comments

Please sign up or log in to contribute to the discussion.