← Morgan Stanley questions

Count ways to reach the n-th stair

Filed under Morgan Stanley · Also reported at Expedia, GE Healthcare, PayU

Given $n$ stairs, count the number of distinct ways to reach the top if you can take either 1 or 2 steps at a time.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Morgan Stanley questions

Collected from public candidate posts and coding forums. Updated Nov 2026.