Skip to content

Bug Report for combination-sum-iv #5131

@ryany45

Description

@ryany45

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

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

The target for this question cannot be zero, but there's a test case with target equals to zero and the expected result set to one
This test case can pass with provide solution because we set our dp[0] = 1, but this test case shouldn't exist because this is not matched with question's boundary

Can accept test case set target == 0
Image

submission test case contains target == 0
Image

Input Boundary
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