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
List the basic operations carried out in a linked list?
How do you find the complexity of a bubble sort?
What do you mean by Runtime Error
Can we add duplicate keys in a hashmap? What will happen if we attempt to add duplicate values?
Define heap?
Which programming language is best for data structures?
Tell me why might quick sort might be better than merge sort?
Define a right-skewed binary tree?
Does list allow null values?
How can you insert a node at the end of linked list?
How many sorting algorithms are there?
Write a program to reverse a single linked list.
What is time complexity of hashmap?
Briefly explain recursive algorithm 50 how do you search for a target key in a linked list?
Is quicksort divide and conquer?