what is a complexity of linear search,binery search?
Answer Posted / hemant belwal
linear search=n/2
binary search=iog2n,2 in the base of log.
Is This Answer Correct ? | 36 Yes | 91 No |
Post New Answer View All Answers
Explain what are the major data structures used in the network data model?
How memory is reserved using a declaration statement in data structure?
If I try to add enum constants to a treeset, what sorting order will it use?
How to do the intersection of two sorted arrays?
How to initialize Dictionary using collection initialize?
What is a stable sort?
Do you know how to find if linked list has loop?
What is an recursive algorithm?
How do you do a heap sort?
how to delete first node from singly linked list?
What is the difference between linked list and array?
What are the applications of b-tree?
Differentiate between hashset and hashmap.
How do you separate zeros from non-zeros in an array?
Differentiate between iterator and listiterator.