Challenge: Big (O) of Nested Loop With Multiplication

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

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 the correct option!

Code Snippet

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