Search⌘ K
AI Features

Two Sum Less Than K

Two Sum Less Than K asks you to choose two elements from an array and return their largest possible sum below a given threshold, or negative one if no pair qualifies.

Statement

Given an array of integers, nums, and an integer k, find the maximum sum of two elements in ...