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 is the difference between one and two dimensional?
Treemap orders the elements on which field?
Define indegree of a graph?
What is the use of space complexity and time complexity?
Can we add duplicate keys in a hashmap?
What is data structure and data type?
What is the difference between linked list and array?
How do you find a string is anagram or not?
Which sorting technique is best in worst case?
Explain what are the methods available in storing sequential files ?
List the data structures which are used in hierarchical data model.
What do you mean by heap order property?
How to reverse singly link list?
Which is best array or linked list?
What are the basic operations of stack?