1014. Best Sightseeing Pair
Description
**Input:** values = [8,1,5,2,6]
**Output:** 11
**Explanation:** i = 0, j = 2, values[i] + values[j] + i - j = 8 + 5 + 0 - 2 = 11**Input:** values = [1,2]
**Output:** 2ac
Previous1013. Partition Array Into Three Parts With Equal SumNext1015. Smallest Integer Divisible by K
Last updated