• +91 9723535972
  • info@interviewmaterial.com

Data structure Interview Questions and Answers

Question - What are the advantages of Binary search over linear search?

Answer -

There are relatively less number of comparisons in binary search than that in linear search. In average case, linear search takes O(n) time to search a list of n elements while Binary search takes O(log n) time to search a list of n elements.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners