...
/Solution Review: Big (O) of Nested Loop with Subtraction
Solution Review: Big (O) of Nested Loop with Subtraction
This review provides a detailed analysis of how to solve the Big O of Nested Loop with Subtraction challenge.
We'll cover the following...
We'll cover the following...
Solution
On line 10 in the outer loop, int i=n; runs once. i>=1; gets executed times, and i-=3 executed times. In the inner loop, int j=n; gets executed times in total. j>=0; executes times, and j-- gets executed ...