a) Recursion
b) Iteration
c) Binomial coefficient
d) All have equal time complexity
Which of the following methods used to find the sum of first n natural numbers has the least time complexity?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following methods used to find the sum of first n natural numbers has the least time complexity?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!