Which of the following implementations of Catalan numbers has the smallest time complexity?

Which of the following implementations of Catalan numbers has the smallest time complexity?
A. Dynamic programming
B. Binomial coefficients
C. Recursion
D. All have equal time complexity
 

Tìm kiếm

Back
Top