channel: / @rlavanya4803
#python
#shorts
#basicprogram
#interviewquestion
#simpleprogram
#lavanya
#RLavanya
#binary
#binarysearch
#middlenumber
💥💥💥💥binary searching the number 💥💥💥
👩💻👩💻👩💻In this program some operaters are missing .find the missing operaters?🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔
a=[1,3,5,2,4]
first=0
last=4
found=0
key=3
while (first last): #0 lessthan 4
mid=(first+last)//2
if a[mid]==key:
found=1
else:
if key a[mid]: #3 less than a[mid]
last=mid-1
else:
first=mid+1
if found==1:
print ("found")
else:
print("not")
💥💥💥like,share,subscribe and comment now💥💥💥💥💥
Sur cette page du site, vous pouvez voir la vidéo en ligne Binary search by using python🕵 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur R Lavanya 10 octobre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 65 fois et il a aimé 2 téléspectateurs. Bon visionnage!