feat(content): hidden test cases
This commit is contained in:
@@ -27,6 +27,12 @@ test_cases:
|
||||
expected: false
|
||||
- input: { head: [1, 2, 3, 4, 5], pos: 4 }
|
||||
expected: true
|
||||
- input: { head: [1, 2], pos: -1 }
|
||||
expected: false
|
||||
- input: { head: [1], pos: 0 }
|
||||
expected: true
|
||||
- input: { head: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], pos: 0 }
|
||||
expected: true
|
||||
|
||||
description: |
|
||||
Given `head`, the head of a linked list, determine if the linked list has a cycle in it.
|
||||
|
||||
Reference in New Issue
Block a user