In a sorted array, we can apply binary search algorithm which takes O($logn$) time in worst case to search a key.
Reference:Binary search
64.3k questions
77.9k answers
244k comments
80.0k users