Skip to content

Bug Report for target-sum #5285

@ntekle99

Description

@ntekle99

Bug Report for https://neetcode.io/problems/target-sum

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
Default test case for Target Sum is invalid. For test case 1 input is nums an array with values [2,2,2] and target with value [4] the goal of the question is to add or subtract each number to reach the target but thats impossible with the default array and target so the code breaks. The example in the question description uses target = 2 which works but the test case for the actual question is 4 so I assume this is a bug.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions