Data Structures & AlgorithmsModerateProduct-company placement

In how many ways can a convex polygon with 7 vertices be divided into triangles by non-crossing diagonals?

  1. A. 132
  2. B. 70
  3. C. 42
  4. D. 28

Correct answer: C. 42

Triangulations of a convex (n)-gon are counted by the Catalan number C(n−2) = C(5) = 42 (same as full parenthesisations of a product of 6 factors).

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic