Need Help in Solving this question

Revision en1, by uttamkumarreddy123, 2024-07-24 20:38:45

Given a tree with N nodes and k leaves. Some positive values are given to the leaf nodes. There are 2 types of nodes in the tree. The nodes that takes max of all the value of the child nodes and the other nodes that takes min of all the values of child nodes. Given the tree with N nodes, the values that can be given K leaf node and good , bad nodes. What is the maximum possible value that root node can get if arrange k values to k leaf node optimally.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English uttamkumarreddy123 2024-07-24 20:38:45 490 Initial revision (published)