New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Datadog
Coding Question
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
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Stdout
-