Example 1

Example 2

The number of nodes in each tree is in the range [0, 5000].-105 <= Node.val <= 105Example 1

Example 2

The number of nodes in each tree is in the range [0, 5000].-105 <= Node.val <= 105