Skip to content

Bug Report for duplicate-integer #4679

@insanjati

Description

@insanjati

Bug Report for https://neetcode.io/problems/duplicate-integer

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

I tried to solve the problems, but even when I already wrote the right solution, it will show this error message: undefined: hasDuplicate. After a while I figured it out, it's because you name the function containsDuplicate instead of hasDuplicate. When I changed the function name, everything worked well.

Before:
Image

After:
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