in Algorithms
288 views
0 votes
0 votes

Hello anyone can help me to find big O for this algorithm please.... 

f=1;

x=3;

for (int i = 1; i <= n; i*=2) 
   for (int j = 1; j <= i * i; j++) 
      if (i % j == 0) 
      for (int k = 1; k <= j; k++) 
         f=f*x;

in Algorithms
288 views

1 comment

Is ans O(n)?
0
0

2 Answers

0 votes
0 votes

O(n^2)

0 votes
0 votes

O(n4)

Related questions