MCQOPTIONS
Saved Bookmarks
| 1. |
What is the time complexity of the above recursive implementation used to find the sum of the first n natural numbers? |
| A. | O(1) |
| B. | O(n) |
| C. | O(n<sup>2</sup>) |
| D. | O(n<sup>3</sup>) |
| Answer» C. O(n<sup>2</sup>) | |