-2

I was thinking the time complexity will be O(n^2*logn). Is it correct. If not, What will be time complexity?

for(i = 0; i < n; i++) 
  for(j = 0; j < n; j++)     
    for(k = 0; k < 100000; k++)          
         a++;

Vihar
  • 3,626
  • 2
  • 24
  • 47
Lucas
  • 19
  • 4

1 Answers1

1

The answer is easy. nxnx100000 is answer. This is base algorithms