SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

Computer Science AQA A level

» Start this Course
(Practice similar questions for free)
Question:

What is the best loop to impliment a linear search and why

Author: Will Parker



Answer:

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