what is a complexity of linear search,binery search?
Answer Posted / pratik wavhal
For Linear Search Complexity Is :- O(n).
For Binary Search Complexity Is :- O(log(at base 2)n).
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
What is the default capacity of hashmap?
Can we store null in arraylist?
What is the difference between for and foreach loop?
What are dynamic data structures?
Explain binary search tree?
Does treeset allow null?
What is the complexity of selection sort?
Can treeset contain duplicates?
Explain what are the types of collision resolution techniques and the methods used in each of the type?
How can we reverse the order in the treemap?
Explain the sorting algorithm that is most suitable to be used with single linked list?
Differentiate stack from array?
Explain what are the major data structures used in the rdbms?
Which sorting algorithm is best for small data?
Does mentioning the array name gives the base address in all the contexts?