feat(content): hidden test cases

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

View File

@@ -28,6 +28,12 @@ test_cases:
expected: [1, null, 2]
- input: { root: [1, null, 2] }
expected: [1, 2]
- input: { root: [1, 2, 3, 4, 5, 6, 7] }
expected: [1, 3, 2, 7, 6, 5, 4]
- input: { root: [5, 3, 8, 1, 4, 7, 9] }
expected: [5, 8, 3, 9, 7, 4, 1]
- input: { root: [1, 2, 3] }
expected: [1, 3, 2]
description: |
Given the `root` of a binary tree, invert the tree, and return *its root*.