InterviewSolution
Saved Bookmarks
| 1. |
Which of the following numbers is the 6th Catalan number?(a) 14(b) 429(c) 132(d) 42The question was asked in final exam.Asked question is from Catalan Number using Dynamic Programming in chapter Dynamic Programming of Data Structures & Algorithms II |
|
Answer» CORRECT choice is (d) 42 The BEST I can explain: Catalan numbers are given by: (2n!)/((n+1)!n!). First Catalan number is given by n = 0. So the 6th Catalan number will be given by n = 5, which is 42. |
|