Okay, so I have been wondering what will be the time complexity when the the for loop iterates from 1 to n*n. Can someone please elaborate the time complexity in the following program???
for(i = 1 ; i < n ; i++) for(j = 1 ; j < i*i ; j++) for(k = 1 ; k < j ; k++) Also, a little twist that confuses:
for(i = 1 ; i < n ; i++) for(j = 1 ; j < i*i ; j++) if(j%i == 0) for(k = 1 ; k < j ; k++)
O(n^4)to me