what is a complexity of linear search,binery search?
Answer Posted / ankita dey
Linear Search-O(n)
Binary Search-O(log n)
| Is This Answer Correct ? | 48 Yes | 5 No |
Post New Answer View All Answers
What is sorting in math?
Can you distinguish between ArrayList and Array?
What is a pass in bubble sort?
Can hashmap store null values?
How null key is handled in hashmap?
What are control structures?
how to display Singly Linked List from First to Last?
How to traverse data in a linked list in forward and backward direction, write the algorithm?
What is a directed graph?
What are the different types of data structures explain briefly?
If you do not initialize an array what will happen?
What do you mean by the term “percolate up”?
Can you sort a hashset?
Differentiate between hashset and treeset.
What is storage structure in data structure?