Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Recursively remove files and directories using a restricted file system API.
Ensure child elements are fully deleted before removing their parent directory.
Return a list of all successfully deleted paths in the correct deletion order.
What This Tests
Recursive tree traversal and post-order execution
Handling hierarchical data structures with external state
Edge case validation for non-existent paths
Order-dependent operation sequencing
Common Patterns
DFS/BFS
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Report
Report seen similar question in interview
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
python
Auto
Debug
Run
Submit
Stdout
-