2815. Max Pair Sum in an Array
You are given a 0-indexed integer array
nums. You have to find the maximum sum of a pair of numbers fromnumssuch that the maximum digit in both numbers are equal.Return the maximum sum or
-1if no such pair exists.
2815. Max Pair Sum in an Array
You are given a 0-indexed integer array
nums. You have to find the maximum sum of a pair of numbers fromnumssuch that the maximum digit in both numbers are equal.Return the maximum sum or
-1if no such pair exists.