Question: Find runtime of the function: def c(n: int) -> None: for i in range(n): j = i while j > 1: j = j -
Find runtime of the function:
def c(n: int) -> None: for i in range(n): j = i while j > 1: j = j - 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
