Skip to content

Bug Report for combinations-of-a-phone-number #5122

@killerdroid99

Description

@killerdroid99

Bug Report for https://neetcode.io/problems/combinations-of-a-phone-number

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

In a test case where input is "7", the expected output is a string array ["q", "p", "r", "s"] instead of ["p", "q", "r", "s"] which is wrong.
The programming language selected is JavaScript for submission.

Image

When I reorder the HashMap corresponding to digit "7" as ["q", "p", "r", "s"] instead of ["p", "q", "r", "s"], the solution is accepted without which is wrong.
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