solutions to practice max and min problems.pdf