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.
Unlock detailed company stats for this questionUpgrade
Community answers
No answers contributed by the community yet.
Related questions
Given an integer array nums and an integer k, return true if nums has a subarray of at least two elements whose sum is a multiple of k.Given an array of integers and an integer k, find the number of continuous subarrays whose sum equals k.Given an array of integers and an integer k, find the kth largest element in the array.Related courses

Course

Course
Course
