On the Extremal Theory of Continued Fractions