As far as i know, the only possible way to find largest number and lowest number if they array is not sorted by using linear search.
is there any other option for this one? just want to know tho
Since the value of a particular element in an unsorted collection tells you nothing about the value of adjacent elements, you need to inspect every value.
And doing that is O(N).
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments