Ticker

6/recent/ticker-posts

Header Ads Widget

Responsive Advertisement

Common Steps


A child is running up a staircase with n steps and can hop either 1 step, 2 steps, or 3 steps at a time. Implement a method to count how many possible ways the child can run up the stairs.

Input : 4


Output : 7

Input : 3

Output : 4

Post a Comment

0 Comments