• + 1 comment

    O(2n^2) is supposed to be O(n^2). Constants aren't taken into account.