Replace all pi problem question

TLE issue coming. Could you tell the problem in this.

Plz send your code by saving on ide

Ohh sry thats resolved. Can you help with the tiling problem. All test cases aren’t passed.

You have to solve this question using a dynamic programming… since it contains overlapping subproblems.