Pls tell error in code.. i think i am unable to understand the question

hi @Vaibhav277 the tiling depens on m as well, but you have not taken that into account. The recurrance relation will be
f(n,m) = f(n-1, m) + f(n-m, m)
Try to write the code for this and let me know if you need any help

But tile size if fixed … 1 X m as given in q

@Vaibhav277 yes but M is variable, m is not fixed.

okay let me try with this recurrance relation…

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.