Subtree of Another Tree — Trees

Check whether a smaller branching structure appears intact inside a larger one, with some section of the larger matching it exactly.

Trees · Easy

More in Trees

All algorithm problems