You are given n pairs of integers. You have to find the maximum sum of second elements where the sum of corresponding first elements is less than or equal a certain value. Please help me solve the problem.
finding maximum sum
You are given n pairs of integers. You have to find the maximum sum of second elements where the sum of corresponding first elements is less than or equal a certain value. Please help me solve the problem.