AlgoMaster Logo

Subtree of Another Tree

tree=[3, 4, 5, 1, 2],subTree=[4, 1, 2]
0 / 6
root34512subRoot412
algomaster.io
Step:Start: Check if subRoot is a subtree of root