Problem 2815 · Easy

Max Pair Sum in an Array

Pair each number with an earlier number that has the same largest digit, keeping the largest earlier value for each digit.

Open the interactive visualisation