category-wise-problems

contains category wise problems(data structures, competitive) of popular platforms.

View the Project on GitHub mayankdutta/category-wise-problems

790. Domino and Tromino Tiling, medium, fibonacci type

code ```cpp int numTilings(int n) { const int mod = 1e9 + 7; vector dp(1020, 0); dp[0] = 1; dp[1] = 1; dp[2] = 2; for (int i = 3; i <= n; i++) { dp[i] = (2 * (dp[i - 1]) % mod + (dp[i - 3] % mod)) % mod; dp[i] %= mod; } return dp[n]; } ``` </details>