In example 2 quick quiz, it said that
Suppose that in the above code the inner for loop also runs n times. What will be the time complexity for the code?
So my question is : what is the code look like and what’s the difference between the above code. l thought the above code is already run n times for inner for loop.
And could you explain how to get answer 4n+5n^2+7? Thank you for your helps. Looking to hear from you.