Question:
What is the best loop to impliment a linear search and why
Author: Will ParkerAnswer:
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 ratings)
1 answer(s) in total