Examveda

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

A. Recursion

B. Iteration

C. Binomial coefficient

D. All have equal time complexity

Answer: Option C


This Question Belongs to Data Structure >> Miscellaneous On Data Structures

Join The Discussion

Related Questions on Miscellaneous on Data Structures