โ† Goldman Sachs questions

Number of ways to traverse steps

Filed under Goldman Sachs

A child is climbing a staircase with n steps. They can hop either 1, 2, or 3 steps at a time. Implement a method to count the total number of distinct ways the child can climb the stairs.

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 Goldman Sachs questions

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