Skip to content

Bug Report for valid-tree #4455

@Ishaan11042005

Description

@Ishaan11042005

Bug Report for https://neetcode.io/problems/valid-tree

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

include this test case my code was accepted on this site but got rejected on other it failed this test case
n=36
edges=[ [35, 34], [34, 16], [15, 9], [2, 0], [22, 6], [3, 11], [1, 32], [23, 11], [25, 21], [16, 10], [4, 25], [33, 0], [26, 13], [27, 21], [26, 21], [30, 25], [10, 23], [34, 29], [17, 12], [14, 8], [6, 9], [21, 31], [4, 7], [1, 10], [24, 11], [5, 17], [14, 12], [7, 28], [19, 15], [3, 8], [8, 20], [28, 33], [16, 26], [21, 18], [24, 0] ]

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