TheLooseCannon's blog

By TheLooseCannon, history, 4 hours ago, In English

Hi everyone!

I've been wondering about something while practicing competitive programming.

Sometimes I spend quite a long time trying to solve a problem, but I still can't find a promising approach. At that point, I'm never quite sure whether I should keep thinking or move on to another problem.

I'm curious about how other people handle this situation.

A few questions:

  • Do you set a time limit for thinking about a problem?
  • What makes you decide that it's time to read the editorial?
  • Do you prefer taking a short break and coming back later?
  • Have you ever spent hours on a problem and suddenly found a simple solution?

I'd especially like to hear how your approach has changed as you've gained more experience.

I think this is something many competitive programmers struggle with, so I'd love to hear your thoughts!

Thanks for sharing!

  • Vote: I like it
  • +2
  • Vote: I do not like it

»
4 hours ago, hide # |
← Rev. 2  
Vote: I like it 0 Vote: I do not like it

Yeah its a thing that happens to me too. But more often than not I do find a way to solve the problem without looking at any hints, but only after a thinking for a long time of 2+ hours on tough problems. So I don't know whether I should be setting time limit to my thinking or not.

»
3 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

i dont give up because i am the goat

»
3 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

(this is during practice, I'm assuming)

  • Do you set a time limit for thinking about a problem?

No and I think that's actually pretty bad for practice, imo the practice is supposed "to make you suffer". and by putting a time limit, it becomes a waiting game. So personally, I don't do that, but what I normally do during practice is the "I don't leave my room until this thing AC"

  • What makes you decide that it's time to read the editorial?

I mean ultimately, everyone has a different opinion, but I read the editorial only when I have absolutely no idea, or if my current idea genuinely has no continuation. But again, it depends on your learning style because mine is that any slight idea has to be fully thought out first before continuing

  • Do you prefer taking a short break and coming back later?

Ok this is kind of subjective for everyone, but me personally, I feel distracted when I take a short break so I actually try to minimize that. But it could be helpful if you're trying to like refresh your mind.

  • Have you ever spent hours on a problem and suddenly found a simple solution?

Absolutely, more often than not, and i think it's something "most" of my friends on cf also somewhat struggle with.

But ultimately, everyone has a different style so there is no "one fits all" approach here. Best we can do is custom our learning to our own styles and most importantly have fun :DDD

Anyways thats all from me, glhf on your journey baibaii~