|
4 | 4 |
|
5 | 5 | /** |
6 | 6 | * 572. Subtree of Another Tree |
7 | | - Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a tree consists of a node in s and all of this node's descendants. The tree s could also be considered as a subtree of itself. |
| 7 | + Given two non-empty binary trees s and t, |
| 8 | + check whether tree t has exactly the same structure and node values with a subtree of s. |
| 9 | + A subtree of s is a tree consists of a node in s and all of this node's descendants. The tree s could also be considered as a subtree of itself. |
8 | 10 |
|
9 | 11 | Example 1: |
10 | 12 | Given tree s: |
|