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.