• + 1 comment

    The "extra" loop is hidden by the printf. So what? Complexity is the same.