Replace each node of a binary tree with the sum of its cousins' values.
Unlock detailed company stats for this questionUpgrade
Given a binary tree, create a new tree where each node contains the sum of the values of all its cousins.
Community answers
No answers contributed by the community yet.


