Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
04
:
49
:
36
Back to Dashboard
Storage Cleaner
Medium
You are implementing a recursive storage cleaner. Given a filesystem represented as a dictionary and a starting path, delete all files and directories under that path, then delete the path itself. Return the list of all deleted paths in the order they were deleted (children are deleted before their parent directory).
The filesystem is a dictionary where: ...