Computer Science, asked by HimangiSingh2053, 1 year ago

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 atd01
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