GATEverse Practice, past papers & mock tests
GATE 2013 · session-1
AlgorithmsAlgorithm Analysis and Asymptotic NotationsmediumMCQ2 marks
Consider the following function:
c
int unknown(int n){
    int i, j, k=0;
    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
Save your progress

Related Algorithms PYQs