closed by
589 views
0 votes
0 votes
closed as a duplicate of: GATE CSE 2013 | Question: 31
Consider the following function:

Int unknown (int n)

{

For(i=n/2;i<=n;i++)

For(j=2;j<=n;j=j*2)

K=k+n/2;

Return (k);

}

The return value of the function is ????

Theta(n^2)

Theta(n^3)

Theta(n^2 log n)

Theta(n^3 log n)
closed by

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
3 answers
4
akshayakrant asked Feb 4, 2018
1,269 views
for what value of x it will have maximum number of minimum spanning trees ? what is the number of minimum spanning trees