If I have the following code:
IterateArray(object[] array)
{
for(int i=0; i<array.length; i++)
{
Dosomething(array[i]);
}
}
and the Dosomething(object)
method's time performance is O(log n), is the overall performance of IterateArray
O(n) or O(n log n)?
Thanks.