Given two integer arrays x and y of the same length n, find three distinct indices i, j, and k such that the values x[i], x[j], and x[k] are all pairwise distinct.
Return the maximum possible value of y[i] + y[j] + y[k]. If it is impossible to choose three indices satisfying this condition, return
Constraints:
n == x.length == y.length
n
x[i], y[i]
Given two integer arrays x and y of the same length n, find three distinct indices i, j, and k such that the values x[i], x[j], and x[k] are all pairwise distinct.
Return the maximum possible value of y[i] + y[j] + y[k]. If it is impossible to choose three indices satisfying this condition, return
Constraints:
n == x.length == y.length
n
x[i], y[i]