• + 2 comments

    Editorial solves in O(N^0.5 * log(N)). I've solved in O(N^0.75) with simple solution than editorial.