Problem 1099 · Easy

Two Sum Less Than K

Find the greatest sum of two different values that stays strictly below a threshold, or report that none exists. Sorted values are paired from both ends inward.

Open the interactive visualisation