Search
⌘K

Leetcode 2815. Max Pair Sum in an Array

Group numbers by their largest decimal digit and for each digit take the two largest numbers to compute their sum; return the maximum such pair sum across digits or -1 if no digit group contains two numbers.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.