Skip to content

Bug Report for linked-list-cycle-detection - Wrong constraints #5119

@joaoLouceiro

Description

@joaoLouceiro

Bug Report for https://neetcode.io/problems/linked-list-cycle-detection

The constraints for the problem state that there is at least 1 entry in the linked list, but there's an empty list in the test cases, so it blows up in the header.next instruction.
I printed the node just to be sure:

Image

Best regards

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