Tiling problem 2

I understood the problem, but i’m not able to code it, could you provide some hint.

It’s giving me runtime error, could you please look into the code

@pabhinav30_5fbfffd82883f2cb Try using Long instead of int.

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.

Its’ still giving me Stack overflow error, even after using Long instead of int.

@pabhinav30_5fbfffd82883f2cb then your logic might be wrong. Watch this video for help :https://youtu.be/L1x3an2pl3U