July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
10
:
09
:
25
:
30
Back to Dashboard
Combine N-ary Trees
Hard
You are given the roots of two N-ary organization charts, each representing a hierarchical department structure. Every node has an integer headcount value and a list of child departments aligned by index.
Merge the two charts with these rules: ...