Storages can contain sub-storages, and a storage can only be deleted once all its children are deleted. Given a mapping such as {A: [B, C], B: [C], C: [], D: []}, output a valid order that deletes…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.