Earlier quoted context omitted.
Yes they are called job interviews these days :d
LOL
Competitive Programmer's Handbook (2017) [pdf]
21–30 of 127 posts
Re: Competitive Programmer's Handbook (2017) [pdf]
#22Has anybody gotten into this kind of programming post-college? Are there communities outside of high school and college competitions for this sort of thing?
As few comments already mentioned, post college, preparing for this type of thing immensely helps in job interviews. I find it very hard to clear job interviews and in 2017 alone, I appeared for ~25 job interviews. I'm very convinced that competitive programming skills gives you a leg up in job interviews. Many people may already may know this, but Peter Norvig indicated that it correlates poorly with on the job perf…
It's not that competitive programming correlates poorly with job performance; it's that, given you've been hired by Google, being a competitive programmer correlates poorly with job performance.
Hypothetically, let's say there's 2 dimensions for a programmer's ability, competitive programming and job experience. Each of these is distributed independently from 0-10. You get hired by Google if competitive programming + job experience > 10. However, let's say that for their actual job performance, it's 0.5 x competitive programming + 1.5 x job experience.
You now have a case where competitive programming could correlate poorly with job performance at Google, despite having a positive correlation in general.
Re: Competitive Programmer's Handbook (2017) [pdf]
#23Skiena and Sedgewick both have excellent books and online courses if you need more depth.
A nice thing about this book is that the full TeX source is on github.
Re: Competitive Programmer's Handbook (2017) [pdf]
#24Seemed interesting up until the "Shortening code" section, that'd drive me mad.
for (int i = 0; i
instead of what was intended (j So if you have (in your pre-written library of snippets) a macro like #define FOR(i, n) for(int i = 0, _n = n; i
then you can write: FOR(i,n) FOR(j,n) {
...
(the _n in the macro is for cases like FOR(i, v.size()) to avoid recomputation) and at least avoid that particular error. Of course other sorts of silly errors are still possible; some examples here: https://www.quora.com/What-is-the-worst-mistake-youve-made-i...Re: Competitive Programmer's Handbook (2017) [pdf]
#25Re: Competitive Programmer's Handbook (2017) [pdf]
#26Earlier quoted context omitted.
As few comments already mentioned, post college, preparing for this type of thing immensely helps in job interviews. I find it very hard to clear job interviews and in 2017 alone, I appeared for ~25 job interviews. I'm very convinced that competitive programming skills gives you a leg up in job interviews. Many people may already may know this, but Peter Norvig indicated that it correlates poorly with on the job perf…
Well, I think you're kind of misrepresenting his point as "competitive programming doesn't improve your programming abilities". It's not that competitive programming correlates poorly with job performance; it's that, given you've been hired by Google, being a competitive programmer correlates poorly with job performance. Hypothetically, let's say there's 2 dimensions for a programmer's ability, competitive programmin…
Re: Competitive Programmer's Handbook (2017) [pdf]
#27Earlier quoted context omitted.
Code should be written for readability, not typing speed.
But if you're in a competitive environment that requires speed, why would you write for readability?
Re: Competitive Programmer's Handbook (2017) [pdf]
#28Has anybody gotten into this kind of programming post-college? Are there communities outside of high school and college competitions for this sort of thing?
Code Jam had a particularly juicy one in the recent Qualifying Round, that could easily be part of a modern shadow rendering game engine. Just to put it into perspective, only around 1000 out of 25000 entrants were able to solve the large data set in the allotted time!
Google Code Jam 2018 Qualifying Round Problem D: Cubic UFO
https://codejam.withgoogle.com/2018/challenges/0000000000000...
Incidentally, I don't really learn a lot from books or tutorials such as the one linked. But rather from the contest analyses and top winners code solutions.