← Google questions
CodingReported in a candidate post, May 2025

Order of deleting storages with parent-child dependencies

Filed under Google

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.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.