ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Which of the following implementations of Catalan numbers has the smallest time complexity?
Correct Answer: B — Binomial coefficients
The time complexities are as follows:
Dynamic programming: O(n^{2})
Recursion: Exponential
Binomial coefficients: O(n).