https://mirror.codeforces.com/problemset/problem/1371/B
Can someone tell me how can one develop intuitions for such problems. I know it requires a lot of practice but is there anything else which I can do besides practice which can help me solve these kind of problems.
Thanks.
There is no cheat code that exist to solve such problems. Just solve more problems and it will naturally come.