New
The Learning module is now live
See what's new
×
Question Bank
Learning
NEW
Pricing
Blog
Forum
HOT
JobRadar
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Databricks
Coding Question
AI Insights
Quick Summary
Traverse a hierarchical directory tree to aggregate file counts.
Distinguish between encrypted and unencrypted files at each node.
Return a two-element array representing totals across the entire subtree.
What This Tests
Tree traversal and recursive state accumulation
Handling nested collections and custom objects
Post-order computation for subtree aggregation
Space and time complexity awareness
Common Patterns
DFS/BFS
Divide and Conquer
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.7-Flash
0/2000
Auto
Debug
Run
Submit
Stdout
-