plz check my code, logic!!!
Tilling Problem - 2
hello @Bhavya_Goel
why u are considering m as a state. it will be always constant for a given test case.
use 1d dp.
with recurremce relation.
ways(n)=ways(n-1)+ways(n-m)
also use modulo property .
i.e (a+b)%mod=(a%mod+b%mod)%mod;
im not getting itπ please could you provide me code of the same or edit it in my code