Skip to content

Commit 8341f50

Browse files
committed
1499. Max Value of Equation
1 parent 99f8c49 commit 8341f50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

1001-1500/1499. Max Value of Equation.swift

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ class Solution {
33
// Solution by Sergey Leschev
44

55
// 1499. Max Value of Equation
6+
67
// You are given an array points containing the coordinates of points on a 2D plane, sorted by the x-values, where points[i] = [xi, yi] such that xi < xj for all 1 <= i < j <= points.length. You are also given an integer k.
78
// Return the maximum value of the equation yi + yj + |xi - xj| where |xi - xj| <= k and 1 <= i < j <= points.length.
89
// It is guaranteed that there exists at least one pair of points that satisfy the constraint |xi - xj| <= k.

0 commit comments

Comments
 (0)