My code is giving TLE error

My code is - https://ide.codingblocks.com/s/337976

Hey @sukritbansal01, Is it giving you TLE while submitting it?

It runs fine

yes while submitting , in test cases

Hey @sukritbansal01 this problem is quite similar as of tiling problem 1 but has wrong test cases embedded in it. I would suggest you to leave this question only if you have passed tiling problem -1 cause a lot of students have complained about this problem and the issue will be resolved ASAP.
happy to help :grinning:

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.