edited by
8,077 views

1 Answer

Best answer
0 votes
0 votes

int count=0,N; --------(1)

for(i=0;i<N*2;i++){     ----->0(n)  

for(j=0;j<i/3;i++){   0(n/3)

for(k=0;k<j*j;k++){    0((n*n)/3)

count++;

}

}

}

HEre we are using the for loop so that 0(n*(n/3)*(n*n)/3) so that 0(n^4)

Answers is A

edited by
Answer:

Related questions

2 votes
2 votes
1 answer
1
aka 53 asked Nov 22, 2017
955 views
for i < - 1 to n for j < 1 to n/2 X = X + 1(i and j both are incrementing by 1)Outer runs for n times and inner for n/2 So will it be n(n...
1 votes
1 votes
2 answers
2
APOORV PANSE asked Jun 1, 2016
2,987 views
Consider the following c fragment : void DAA(n) { int i,j,k,x=0; for (i=1 ; i <=n ; i++) for (j=1 ; j <= i * i ; j++) { if ( j mod i == 0 ) for ( k = 1 ; k <= j ; k++) x=...
2 votes
2 votes
2 answers
3
Hardik Vagadia asked Aug 20, 2016
1,765 views
For(i=1;i<(1<<n);i++) { Do something }What is the meaning of the expression in the condition part of the for loop?