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 this kind of problems.
Thanks.