what is a complexity of linear search,binery search?
Answer Posted / lokesh bhatt
o(n)= linear
o(log n)(base 2)= binary
bcz in linear v search one be one while in binary v divide array in two part every time
| Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
What is an ordered map?
How do you do a mergesort?
Difference between hashset and treeset?
What is a directed graph?
What do you mean by sorting?
Is hashmap keyset ordered?
What is the difference between data types and data structures?
What is the minimum number of nodes in an avl tree of height h?
Are hash tables ordered?
What is the time complexity of arrays sort?
Describe linear probing with an example.
Two linked lists are given, find out the sum of them without altering the linked list?
What are different types of algorithms?
Define static data structures?
Can we increase the size of statically allocated array?