Problems with tag O(sqrt(k))