|
|
|
|
|
by cleancoder0
1738 days ago
|
|
Competitive programming develops these skills quite well. Reaching high performance means knowing the solution before coding it up. Witnessing high level competitive programmers scribble stuff on paper for 5-10 minutes, and then just a pure stream of thought into a 100 line C++ program that was compiled once, run through examples, submitted and accepted, is out of this world. Another example is when solution is unclear (mostly for number theoretic stuff that needs to be efficient), scribble on paper, code up pattern generating code, generate patterns, look at them, stop, scribble on paper, code the O(1) solution, submitted and accepted (an easy example is to efficiently calculate the sum of first N Fibonacci numbers). |
|
I'm not competitive, anyway. It's really a life choice, and a moral stance.
Also, that's not how my brain works.
I'm not really interested in proving myself to anyone, or beating anyone else.
I just enjoy writing good stuff that people use.