← Amazon questions

Ways for Bot to Take 1, 2, or 3 Steps

Filed under Amazon

A bot is climbing a staircase with n steps and can take 1, 2, or 3 steps at a time. Implement a function to count how many possible ways the bot can reach the top step.

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 Amazon questions

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