what is a complexity of linear search,binery search?

Answer Posted / naresh kumar

complexity of linear search 0
n binary search 0log(n)

Is This Answer Correct ?    14 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between data type and variable?

466


What is difference between data type and data structure?

411


What is collision in data structure?

498


Is hashmap keyset ordered?

551


What is sorted map?

496






Does hashmap sort automatically?

557


What are the basic data structures?

512


How do you define a set?

473


What is a binary search tree? Explain with example?

505


What is the order of selection sort?

447


How will you reverse Linked List.

532


Is copyonwritearraylist thread safe?

469


Is it possible to store null key and null values in a hashmap?

425


What are linked lists most commonly used for?

481


What is copyonwritearraylist?

513