TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Competitive Programmer's Handbook (2017) [pdf]

594 pointsby linouk23about 7 years ago

17 comments

zerrabout 7 years ago
The most irritating thing with these competitive/algo stuff is that no matter how many times you master it - eventually you always forget it, because you don't need it on a daily (or more like yearly) basis in the real world.
评论 #16955536 未加载
评论 #16955848 未加载
评论 #16953542 未加载
评论 #16953535 未加载
评论 #16953566 未加载
评论 #16954623 未加载
评论 #16955482 未加载
评论 #16954758 未加载
评论 #16958590 未加载
评论 #16953510 未加载
yodsanklaiabout 7 years ago
I see in the comments that some people conflate competitive programming and technical interviews. Technical interviews (at least in companies such as facebook and google) are usually much easier than competitive programming problems. The problem you find on leetcode for interview preparation would be considered beginner problems in competitions such as google code jam.
评论 #16956564 未加载
评论 #16963433 未加载
smnscuabout 7 years ago
This is a good resource that I&#x27;m currently going through to prepare for interviews. Another one would be Competitive Programming (3rd edition) [1] but for general interview skills the Codility lessons are also OK [2].<p>1 - <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Competitive-Programming-3rd-Steven-Halim&#x2F;dp&#x2F;B00FG8MNN8" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Competitive-Programming-3rd-Steven-Ha...</a><p>2 - <a href="https:&#x2F;&#x2F;drive.google.com&#x2F;open?id=1WjXxbdle0_Syip_LygBpnZkfHvqST34s" rel="nofollow">https:&#x2F;&#x2F;drive.google.com&#x2F;open?id=1WjXxbdle0_Syip_LygBpnZkfHv...</a>
joshvmabout 7 years ago
I like this book, but I have some reservations for using it for interview practice. There is no discussion on implementation of some of the algorithms, which may be relevant in an interview (e.g. if you&#x27;re not allowed to use std::sort).<p>There are also a lot of topics where there&#x27;s a brief overview of the algorithm, but no code - e.g. the geometry section is interesting and has some useful ideas, but no implementation. This gets worse as the algorithms get more complicated, and some quite difficult topics get a cursory glance.<p>For the general categories of problems that you find on e.g. LeetCode or Intervewbit, this book is really useful. It&#x27;s a good, practical, companion to a proper algorithms textbook.<p>Perhaps most irritating - if using this for prep - is that there are virtually no case studies, and the case studies that are in there assume a lot of code which isn&#x27;t in the book (either boilerplate or assistance functions). This book would be incredibly valuable if each chapter had a list of example problems (solved or unsolved) to see how things are applied.
qnttyabout 7 years ago
Has anybody gotten into this kind of programming post-college? Are there communities outside of high school and college competitions for this sort of thing?
评论 #16952947 未加载
评论 #16952852 未加载
评论 #16953368 未加载
评论 #16952768 未加载
评论 #16952751 未加载
评论 #16952841 未加载
donttrackabout 7 years ago
I would watch programming contests live streams.. Are there any available?
评论 #16953870 未加载
评论 #16954107 未加载
评论 #16953857 未加载
评论 #16954061 未加载
评论 #16954350 未加载
partycoderabout 7 years ago
This book gets to the point fast. But for the fundamentals this book serves more as a refresher than a course.<p>Skiena and Sedgewick both have excellent books and online courses if you need more depth.<p>A nice thing about this book is that the full TeX source is on github.
评论 #16984538 未加载
dangabout 7 years ago
Previous discussion at <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14115826" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14115826</a>.
legoheadabout 7 years ago
Seemed interesting up until the &quot;Shortening code&quot; section, that&#x27;d drive me mad.
评论 #16953143 未加载
评论 #16953094 未加载
评论 #16952945 未加载
xeturabout 7 years ago
This was the first resource I used to help me prep during my most recent interviews. Read and implement the examples yourself.
nojvekabout 7 years ago
Is there a printed hard copy version available as a book? I’d love to buy it. I’m a big fan of highlighting and annotating books with a pencil.<p>This is a great summary to a ton of CS algorithms and datastructures. Thanks for compiling this.
评论 #16955737 未加载
sigsergvabout 7 years ago
This book seems very useful for a job exams preparation.
tomkwongabout 7 years ago
Nice! Reading through this doc is like going back to Computer Science classes again.
mindfulplayabout 7 years ago
I wonder if there is something similar to this but for pragmatic, design-oriented challenges. Writing obfuscated code in the shortest amount of time is akin to the people who change tires during a race car competition. I would love to see challenges where you build the race car parts instead.<p>Boring but immensely more useful.
Fazel94about 7 years ago
If you wonder why you need to learn competitive programming when you can just look it up? I would like to refer you to B.F.Skinner&#x27;s quote on education: &quot;Education is what survives when what has been learned has been forgotten.&quot;
sdanabout 7 years ago
Only book I used for USACO.
mgeorgouloabout 7 years ago
Chapter 8.1 shows an awesome algorithm!