feat(content): hidden test cases
This commit is contained in:
@@ -24,6 +24,16 @@ test_cases:
|
||||
expected: [1]
|
||||
- input: { head: [1, 2, 3] }
|
||||
expected: [3, 2, 1]
|
||||
- input: { head: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] }
|
||||
expected: [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
|
||||
- input: { head: [-5, 0, 5] }
|
||||
expected: [5, 0, -5]
|
||||
- input: { head: [1, 1, 1, 1] }
|
||||
expected: [1, 1, 1, 1]
|
||||
- input: { head: [100, -100] }
|
||||
expected: [-100, 100]
|
||||
- input: { head: [7] }
|
||||
expected: [7]
|
||||
|
||||
description: |
|
||||
Given the `head` of a singly linked list, reverse the list, and return *the reversed list*.
|
||||
|
||||
Reference in New Issue
Block a user