Typically upon reading a problem, I either see the solution immediately, or get stuck with no idea how to proceed. Getting stuck usually mean spending hours just thinking about it slowly, getting distracted, and failing to make any progress.
What is the optimal amount of time to remain stuck on the problem before reading the editorial solution?
For example, if I spend 5-6 hours in "stuck" mode, not working on anything else, and often still failing to solve the problem — it seems like an inefficient waste of valuable practice time.
Of course, just giving up and solving easy problems doesn't improve my skills either. I already know how to solve these easier problems.