We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d215a49 commit fa7b64cCopy full SHA for fa7b64c
src/main/java/com/fishercoder/solutions/_1014.java
@@ -1,21 +1,5 @@
1
package com.fishercoder.solutions;
2
3
-/**
4
- * 1014. Best Sightseeing Pair
5
- *
6
- * Given an array A of positive integers, A[i] represents the value of the i-th sightseeing spot,
7
- * and two sightseeing spots i and j have distance j - i between them.
8
9
- * The score of a pair (i < j) of sightseeing spots is (A[i] + A[j] + i - j) :
10
- * the sum of the values of the sightseeing spots, minus the distance between them.
11
12
- * Return the maximum score of a pair of sightseeing spots.
13
14
- * Note:
15
- * * 2 <= A.length <= 50000
16
- * * 1 <= A[i] <= 1000
17
- */
18
-
19
public class _1014 {
20
public static class Solution1 {
21
public int maxScoreSightseeingPair(int[] A) {
0 commit comments