what is a complexity of linear search,binery search?
Answer Posted / lokesh bhatt
o(n)= linear
o(log n)(base 2)= binary
bcz in linear v search one be one while in binary v divide array in two part every time
Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
What data structure does a binary tree degenerate?
Is quicksort divide and conquer?
Does hashmap allow null keys?
What is shell sort in data structure?
How many types of data structures are there?
What is raid (redundant array of inexpensive disks)? Explain its level?
Can an arraylist be null?
Can we change the size of an array at run time?
Does treemap sort on key or value?
How to get top two numbers from an array?
Differentiate between list and map.
What is ds tree?
What is the minimum number of queues that can be used to implement a priority queue?
Differentiate between set and map.
Is array size dynamic or fixed?