salesforce onsite

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2024-08-08Added By Anonymous
Source: Link

find the shortest combination of numbers that add up to a given target sum.


The primary function, bestSum(targetSum, numbers), accepts a target sum and an array of numbers, returning the shortest array of numbers that sum up to the target.

Comments