Search a max value in an unsorted array. (Very abstract question) in better than O(n).
Anonymous
Is that even possible? If array is unsorted, there is no way to know the max unless you go over all the array. Sort the array would take more than o(n) Unless there is some information missing on the question, the best would be o(n)
Check out your Company Bowl for anonymous work chats.