https://codeforces.net/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.