Need Help in FLIPCOINS

Why does my solution gives TLE.

How does lazy propagation help?

https://www.codechef.com/viewsolution/28423772

@l_returns can you help?

2 Likes