When you realize that you need to change your approach while facing a challenging problem? In contests, I always tend to rush and keep optimizing the same solution without knowing when to stop.
When you realize that you need to change your approach while facing a challenging problem? In contests, I always tend to rush and keep optimizing the same solution without knowing when to stop.
A strategy I use is check how many people have done the problem. If a lot of people have solved and I am stuck chances are I am doing the wrong approach, probably over complicating things. A lot of people is relative. 8k people done div 2 A? Not a lot. 1k done div 2 D? This is a lot and chances are this one is easier than most div 2 D.