In: Computer Science
how do i find a peak in time complexity of O(log(n)) in a list?
input: a list of numbers or integers
output: a possible local peak in the list
for an example:
calling function [2,3,8,9,5] would return 3
im thinking about using binary search but it would require a sorted list.