1,251 views
0 votes
0 votes
time complexity of given function

fun(int n){

for(int i = 0;i<n;i++)

   for(int j=i;j<i*i;j++)

      if(j%i==0){

         for(int k =0;k<j;k++)

             printf("*");

       }

}

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
2
0 votes
0 votes
1 answer
3
NeelParekh asked Jul 27, 2023
279 views
If an array is split in the form of increasing and decreasing order then what is TC to find minimum element in the array?
2 votes
2 votes
1 answer
4
h4kr asked Dec 30, 2022
473 views
What is the correct time complexity in $\theta()$ ?