Sort And Searching Question:

Download Job Interview Questions and Answers PDF

Explain what is linear search?

Sort And Searching Interview Question
Sort And Searching Interview Question

Answer:

Linear search is the simplest form of search. It searches for the element sequentially starting from the first element. This search has a disadvantage if the element is located at the end. Advantage lies in the simplicity of the search. Also it is most useful when the elements are arranged in a random order.

Download Sort And Searching Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me why might quick sort might be better than merge sortExplain what is binary search?