Challenge: Big O of Nested Loop with Multiplication

Compute Big O of an algorithm which involves nested loops and the loop variables increment with multiplication.

We'll cover the following

Problem Statement

Compute the Big O time complexity of the following code It is better to solve it on a piece of paper and then see if your answer matches with the correct option!

Code Snippet

You have to calculate the time complexity of code given below:

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.