All mock tests are FREE till 31 December — register to save your progress

A person climbing stairs can take one or two stairs at a time. How many ways can the person climb a flight of eight stairs?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. 34

Explanation

Ways(n) = Ways(n−1) + Ways(n−2) with Ways(1) = 1, Ways(2) = 2: 1, 2, 3, 5, 8, 13, 21, 34. Eight stairs: 34.

More Discrete Structures and Optimization questions