The leaf value sequence of a binary tree is the list of its leaf values read from left to right. Given the roots of two binary trees, return true if their leaf value sequences are the same, and false otherwise.
The leaf value sequence of a binary tree is the list of its leaf values read from left to right. Given the roots of two binary trees, return true if their leaf value sequences are the same, and false otherwise.