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
DoorDash
Coding Question
AI Insights
Quick Summary
Compare two n-ary menu trees to count modified nodes.
Track changes in node values and active status.
Treat absent nodes and their entire subtrees as inactive during structural updates.
What This Tests
Tree traversal and recursion
Hash-based data structure lookups
State comparison and diffing logic
Handling edge cases in hierarchical data structures
Common Patterns
DFS/BFS
Hashing
Collapse
Hint 1
Hint 2
Hint 3
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
-