Question: what is the difference between linear search and binary search in hindi?
Answer: Linear search does the sequential access whereas Binary search access data randomly. Time complexity of linear search -O(n) , Binary search has time complexity O(log n).