Forgot password? New user? Sign up

Existing user? Log in

What is the runtime of the following function?

1 2 3 4 5

function f(n) k = 0 for i in 1 to n: k := k * i return k

Problem Loading...

Note Loading...

Set Loading...