tree where each level alternates returning min and max

applications

game theory