feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 72f7833c6c
commit a1a4eeaed7
134 changed files with 2075 additions and 0 deletions

View File

@@ -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*.