ProgrammingModerate

In Pascal's triangle with row 0 at the top, what is the entry in row 6, column 2?

  1. A. 15
  2. B. 12
  3. C. 20
  4. D. 21

Correct answer: A. 15

The entry is C(6,2) = 6 x 5 / 2 = 15, which the DP recurrence C[n][k] = C[n-1][k-1] + C[n-1][k] also gives.

More C Programming questions

Exams that ask this topic