← All problems
Easy · Trees

Subtree of Another Tree

Does any subtree exactly match the second tree?

Full problem and submission ↗
main.js

Console

Ready