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

@@ -27,6 +27,12 @@ test_cases:
expected: true
- input: { root: [1, 2, 3], sub_root: [3, 1] }
expected: false
- input: { root: [3, 4, 5, 1, null, 2], sub_root: [3, 1, 2] }
expected: false
- input: { root: [1, 2, 3, 4, 5], sub_root: [2, 4, 5] }
expected: true
- input: { root: [1], sub_root: [0] }
expected: false
description: |
Given the roots of two binary trees `root` and `subRoot`, return `true` if there is a subtree of `root` with the same structure and node values of `subRoot` and `false` otherwise.