Skip to content

Implement an brute-forced recursive function how_sum(target_sum, numbers) that takes in target_sum and an array of numbers as arguments. #17

@SchattenMonarch

Description

@SchattenMonarch

The function should return an array containing any combination of elements that add up to exactly the targetSum. If there is no combination that adds up to the target_sum, then return null.

If there are multiple combinations, return any af those.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions