Problem link I have seen the solution but i dont understand how the recurrance relation is dp[i]=dp[i-1]+dp[i-2]+2;
Can somebody explain it to me.
Need help solving Probelm
Problem link I have seen the solution but i dont understand how the recurrance relation is dp[i]=dp[i-1]+dp[i-2]+2;
Can somebody explain it to me.
| Rev. | Lang. | By | When | Δ | Comment | |
|---|---|---|---|---|---|---|
| en1 |
|
peaceful_warrior | 2015-06-15 10:14:48 | 226 | Initial revision (published) |