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
How do you find the time complexity of a bubble sort?
What is the difference between file structure and storage structure?
Does treeset allow null?
What is static array?
Describe linear probing with an example.
Does hashmap preserve insertion order?
Write a data structure for a queue.
List out the advantages of using a linked list?
What is meant by a dynamic array?
What are the types of data structures?
What is the impact of signed numbers on the memory?
How does insertion sort works?
What is array indexing?
What are the categories of avl rotations?
Can you sort a hashmap?