Regarding Search

What type of Search is preferred when an array is in unsorted order?

hey @dhruvtrehan45 if the array has no order to it( i.e it is completely random) then you have to do linear search which is of O(n) time complexity, but if you have to search an array multiple times then it is possible to do hashing which can provide answers for the queries faster

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.