Comment

avatar username

It's $O(n^2 \cdot log(n))$ actually. It'll be $O(n^2)$ if use std::unordered_set instead of std::set

The actual rating of this user is 1814.

Original comment.

Statistics