Excel in math, science, and engineering

New user? Sign up

Existing user? Sign 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...