Skip to main content
Technical

Given an array of n integers and a number k, find the maximum number of elements whose sum is less than k, and return their sum.

Top community answer

No community answers yet.

Contribute an answer

Have a better answer?

Share your experience and earn credits toward your next interview session.

Contribute an answer