¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
Program to search 71 in the following array 18 ,45,87,4,11,89,3,71,7,29 use binary search but first sort using bubble sort
binary search and bubble sort
1 Respuesta
+ 4
if your trying to search it in this particular array it's probably better to do it with your eyes :D
I can't really help you cause I don't know c++(you can roast me now) but the standard way would be to use a for loop and match you number with array [i]
hope this helps, a little bit^^