InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is not an application of Catalan Numbers?(a) Counting the number of Dyck words(b) Counting the number of expressions containing n pairs of parenthesis(c) Counting the number of ways in which a convex polygon can be cut into triangles by connecting vertices with straight lines(d) Creation of head and tail for a given number of tossesThe question was posed to me during a job interview.I would like to ask this question from Catalan Number using Dynamic Programming topic in chapter Dynamic Programming of Data Structures & Algorithms II |
|
Answer» Correct OPTION is (d) CREATION of head and tail for a given number of tosses |
|