leetcode962 Maximum Width Ramp
Given an array A of integers, a ramp is a tuple (i, j) for which i < j and A[i] <= A[j]. The width of such a ramp is j - i.Find the maximum width of a ramp in A. If one doesn’t exist, return 0.
...
原创
2019-04-29 12:26:26 ·
134 阅读 ·
0 评论