# Big-Oh Basics 2 - Single Loops

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 

×