GoCooL wrote:
>
> The larger of the 2 values x,y will be your max and it's corresponding
> nodes will give you the rooms with cameras in them.
>
Suppose the following tree...
4
/ \
1 20
/ \ / \
10 2 2 3
You now have EVEN -> 21, ODD -> 21
However, if you take only the 10 and 20 nodes you get 30, with minimal
node selection as a bonus.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---