373 views

1 Answer

Best answer
3 votes
3 votes
complexity will be n+n/2+...1(logn terms)

 Solve using Geometric Progression

Ans will be  O(n)
selected by

Related questions

1 votes
1 votes
3 answers
1
Manu Thakur asked Aug 29, 2017
2,919 views
The innermost loop will execute when j is multiple of i, and that will happen exactly i times. Please help me to find the time complexity of the below program:
1 votes
1 votes
1 answer
2
0 votes
0 votes
0 answers
3
usdid asked Jul 2, 2022
516 views
what is the running time of the following iterative algorithm?b) It is possible to talk about the best, average and worst running times for this algorithm. Why? pseudo co...