AlgoMaster Logo

Same Tree

tree1=[1, 2, 3],tree2=[1, 2, 3]
0 / 14
tree ptree q123123checksisSameTree(p, q): compare pairs top-down
algomaster.io
Step:Start: compare the two trees pair by pair