On clicking a node in a tree, all the adjacent edges are turned on. Calculate min of clicks such that all the edges are turned on
Answers
Answered by
0
This means you have to count the number of non-leaf nodes in the tree, because if you click all the non-leaf nodes only, all the edges will get clicked
Similar questions
Social Sciences,
8 months ago
Hindi,
8 months ago
English,
8 months ago
Math,
1 year ago
Math,
1 year ago