3745. Maximize Expression of Three Elements
You are given an integer array
nums.Choose three elements
a,b, andcfromnumsat distinct indices such that the value of the expressiona + b - cis maximized.Return an integer denoting the maximum possible value of this expression.
1 | class Solution { |