what is the complexity of recursive summation

84 Views Asked by At

can someone tell me the exact complexity of this recursion ? this is actually formula for below question ( solved in recursive brute force way )

There is n steps stairs and a person standing at the bottom want to reach at top. Person can take max k steps at a time ( i.e. he can take 1, 2 , 3,.. upto k steps).Count how many ways person can climb the stairs.

enter image description here

0

There are 0 best solutions below