I’m new to CP and as of now practicing CodeChef medium problem. While solve the Problem FlipCoin I went to the past submission and found out this solution which I couldn’t able to understand.
- What programming technique he/she is using and why?
- What’s the benefit of using it over segment tree?
and why there are so many pointers in there?
Thanks for helping a beginner.