leetcode872专题

LeetCode872. Leaf-Similar Trees

文章目录 一、题目二、题解 一、题目 Consider all the leaves of a binary tree, from left to right order, the values of those leaves form a leaf value sequence. For example, in the given tree above, the leaf