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
Locate a specific file or directory node in a tree-structured virtual file system by name.
Calculate the cumulative size of all files contained within the target node's subtree.
Handle both direct file lookups and nested directory aggregations efficiently.
What This Tests
Tree traversal and navigation techniques
Iterative versus recursive algorithm design
Subtree aggregation and state accumulation
Polymorphic object hierarchy handling
Common Patterns
DFS/BFS
Graph Traversal
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
-