Once you attempt the question then PrepInsta explanation will be displayed.
Although the ordered linear search is better than unordered when the element is not present in the array, the best and worst cases still remain the same, with the key element being found at the first position or at last position.
Login/Signup to comment