AlgoMaster Logo

Delete Nodes And Return Forest

tree=[1, 2, 3, 4, 5, 6, 7],toDelete=[3, 5]
0 / 38
1234567Forest: []currentforest rootdeletingkept
Step:Start: Delete nodes [3,5] and return forest