GATEverse
← GATE CSE 2017 Set 2

Q38

MCQ2 marks, −0.67

Consider the following C function int fun(int n) { int i, j; for(i=1; i<=n; i++) { for (j=1; j<n; j+=i) { printf("%d %d", i, j); } } } Time complexity of funfun in terms of Θ\Theta notation is

Sign in to save attempts.

Loading…