#quadratic-complexity