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 do you mean by priority queue?
What stack means?
How do you find the second largest element in an array of integers?
Explain linear linked implementation of Stack and Queue?
What is a hashset?
State the difference between queues and linked lists?
Is char array null terminated?
Is hashmap ordered?
What is a bubble sort and how do you perform it?
Which algorithm is used in arrays sort?
What is the difference between Strings and Arrays?
Explain binary search tree?
What is the capacity of arraylist?
What are sorting algorithms used for?
Does treemap sort automatically?