feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 89b5dd1457
commit 6bed0a6787
134 changed files with 2075 additions and 0 deletions

View File

@@ -24,6 +24,16 @@ test_cases:
expected: [0, 0, 1]
- input: { l1: [5], l2: [5] }
expected: [0, 1]
- input: { l1: [9], l2: [1] }
expected: [0, 1]
- input: { l1: [2, 4, 9], l2: [5, 6, 4, 9] }
expected: [7, 0, 4, 0, 1]
- input: { l1: [1, 8], l2: [0] }
expected: [1, 8]
- input: { l1: [9, 9, 9], l2: [1] }
expected: [0, 0, 0, 1]
- input: { l1: [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], l2: [5, 6, 4] }
expected: [6, 6, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
description: |
You are given two **non-empty** linked lists representing two non-negative integers. The digits are stored in **reverse order**, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list.