1099. Two Sum Less Than K
Description
**Input:** nums = [34,23,1,24,75,33,54,8], k = 60
**Output:** 58
**Explanation:** We can use 34 and 24 to sum 58 which is less than 60.**Input:** nums = [10,20,30], k = 15
**Output:** -1
**Explanation:** In this case it is not possible to get a pair sum less that 15.ac
Last updated