Problems with tag O(sqrt(n))