feat(content): hidden test cases
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user