Comment

avatar username

This code seems to be for problem CSES — Distinct Colors.

If you did small to large, the complexity would be $O(n \cdot \log{(n)}^2)$, but this code is $O(n^2)$

The actual rating of this user is 1409.

Original comment.

Statistics