Skip to content

Bug Report for clone-graph #5428

@surajsubb

Description

@surajsubb

Bug Report for https://neetcode.io/problems/clone-graph

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

My solution passes on neetcode but not on the same leetcode problem. When I try the test case on neetcode, my solution matches the expected output, but the expected output is wrong.
As you can see the input is
adjList=[[2,4],[1,3],[2,4],[1,3]]

But the expected output is showing up as
[[2,4],[1,3],[2,4],[1,3],[2,4]]

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