-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Description
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
Labels
No labels