Problems with tag O(n^3 * logn)