O(logn) time algorithm to find two local maxima in an array

后端 未结 0 1517
旧时难觅i
旧时难觅i 2021-02-10 11:27

Let A be an array consisting of n elements such that there exists indices i, j, k ∈[0, n−1], where 0≤ i < k < j≤n−1, and A[0]< A[1]< ... < A[i−1]< A[i]> A[i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题