Skip to content

Bug Report for linked-list-cycle-detection #4448

@stefanleoussis

Description

@stefanleoussis

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

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

The submission test cases for this problem should include an input list with duplicate values. This way, submissions will fail if the implementation is purely based on hashing duplicate values as opposed to the node object itself.

Without this, the submission will pass on Neetcode but fail in Leetcode.

Example Test Case:
head = [1, 2, 1]
index = -1

This is more of a suggestion, my apologies if this is the wrong place to make it.

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