When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

arshad2117's blog

By arshad2117, history, 4 years ago, In English

I often go through this dilemma during practicing.

Implementing problems and getting them accepted gives me a feeling of "actually solving" the problem.

However, the number of concepts and ideas I'm getting exposed to is much lesser this way as I am spending a lot of time implementing solutions.

What do you suggest? Which method has helped you improve?

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

| Write comment?
»
4 years ago, # |
  Vote: I like it +37 Vote: I do not like it

Being able to implement fast is also an important skill. Just knowing the idea of a solution doesn't mean you can implement it in a contest.

»
4 years ago, # |
  Vote: I like it +68 Vote: I do not like it

Implement it unless you did something very similar a few times.

»
4 years ago, # |
  Vote: I like it +23 Vote: I do not like it

There are some problems that takes me 2-3 hours to implement after reading the editorials. There are a few others that I don't even know how to implement and have to read others' implementations, spend time understanding the code before trying to implement it myself.

Perhaps I'm just not good enough for those problems but I think it's still (somewhat?) better than solving problem theoretically.

»
4 years ago, # |
  Vote: I like it +25 Vote: I do not like it

I don't. maybe thats why i suck

»
4 years ago, # |
  Vote: I like it +8 Vote: I do not like it

During implements,I can organize my thoughts.It is good for speedy implementing and well understanding for a problem.
And sometimes I can detect some unexpected bugs and it makes easy finding similar bugs during contests.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +8 Vote: I do not like it

    Can you explain in more detail, what do you mean by organizing thoughts ?

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it +11 Vote: I do not like it

      For example,I sometimes confuse {<,<=,>,>=},{Ascending sort,Descending sort},and so on in my algorithm.
      During implementing, I must understand clearly my own algorithm and avoid getting WA.
      With implementing, I should make clear my thinking path so that I can look back my thinking.
      During the phase,I can organize my idea naturally.