Page 1 of 1

Which of the following methods used to find the sum of first n natural numbers has the least time complexity?

Posted: Wed Jul 13, 2022 6:16 pm
by answerhappygod
a) Recursion
b) Iteration
c) Binomial coefficient
d) All have equal time complexity