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
Why do we use trees in data structures?
List the differences between comparable and comparator interface?
What happens when arraylist is full?
Which is faster hashmap or treemap?
What are the disadvantages of sequential storage?
What is meant by linked list?
How do you clear a stack?
What is pivot in quicksort?
What are the tasks performed during postorder traversal?
What are common data structures?
Write a recursive c function to calculate the height of a binary tree.
Define primary clustering?
What is a string array?
What is the function of stack?
How can you correct these errors?