Question: What is the time complexity of function 1 , if the complexity of function 2 ( n ) is log ( n ) Time left

What is the time complexity of function 1, if the complexity of function2(n) is log(n)
Time left 0:14:2
Int function1(n)
{
function2(n);
int I = n;
1=1+n;
function2(n);
}
Oa. O(n^2)
b. None of the Other Options
Oc. O(n)
Od. O(((log(n))^2)
O e. O(log(n))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!