Binary search by using python🕵

Published: 10 October 2022
on channel: R Lavanya
65
2

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💥💥💥💥💥


On this page of the site you can watch the video online Binary search by using python🕵 with a duration of hours minute second in good quality, which was uploaded by the user R Lavanya 10 October 2022, share the link with friends and acquaintances, this video has already been watched 65 times on youtube and it was liked by 2 viewers. Enjoy your viewing!