L272 Climbing Stairs II
A child is running up a staircase withn
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.
Example
n=3
1+1+1=2+1=1+2=3=3
return4
还是斐布拉其。
Last updated