Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
O(n) because factorial(n) = 1 * 2 * 3 * ... * n. It can be done with 1 loop which runs n times.
18th Jan 2021, 2:19 PM
你知道規則,我也是
你知道規則,我也是 - avatar
0
Is the complexity 3n+1 and the big oh just n
13th May 2022, 9:01 PM
joshua
joshua - avatar