edited by
358 views

2 Answers

Best answer
1 votes
1 votes
FIRST LOOP:intializes i=1 SECOND LOOP:intializes i=1; THIRD LOOP intializes i=1 and run till i=n^6 .. and when i checks for second iteration for 1st loop get.. condition failed ..and loops out ... THATS WHY ONLY n^6 times it get printed.
selected by
1 votes
1 votes
HERE N^6 IS THE ANSWER BECAUSE  every time variable i is initialized to 1 and so the previous 2 i values are ignored and the final loop is taken in consideration. this is what i think

Related questions

0 votes
0 votes
1 answer
1
rajan asked Dec 9, 2016
373 views
how to solve these two using matser thorem.1. t(n)=2t(√n)+n2. t(n)=4t(√n)+(logn)^2
1 votes
1 votes
2 answers
2
vijaycs asked Jul 11, 2016
1,892 views
On which of the following recurrence relation Masters theorem can not be applied ?A. T(n)= 2T(n/2) + n (log n).B. T(n) = T(n/2) + 1.C. T(n) = 8T(n/2) + (log n).D. T(n) = ...
0 votes
0 votes
0 answers
3
2 votes
2 votes
1 answer
4