edited by
1,138 views
5 votes
5 votes

//n is a prime number here

int main()
{
    for(i=1;i<=n;i=2*i)
       {
             for(j=1;j<=n;j++)
               {
                 if(n%i==0)
                   {
                        k=1;
                      while(k<=n)
                        {
                       a=b+c;
                       k=k+1;
                        }
                   }
               }
         }
}
edited by

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
297 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
486 views
What is the correct time complexity in $\theta()$ ?