Pregunta:
What is the best loop to impliment a linear search and why
Autor: Will ParkerRespuesta:
Do while loop Becasue if the first item is the corret item the loop will stop unlike a for loop Howeever they do still both have tjme complexity O(N)
0 / 5 (0 calificaciones)
1 answer(s) in total