Search
⌘K

Leetcode 872. Leaf-Similar Trees

Check whether two binary trees produce the same left-to-right sequence of leaf node values — i.e., extract each tree’s leaf values in order and return true if the two sequences are identical.

Asked at:

Snowflake


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid March, 2025

Snowflake

Senior

Comments

Your account is free and you can post anonymously if you choose.