We are moving soon to http://cpbook.net/

NEW STAGING WEBSITE: http://cpbook.net/

This is the companion web site for a book: "Competitive Programming 3: The New Lower Bound of Programming Contests" and its two past editions written by myself (Steven Halim - UVa status) and my younger brother (Felix Halim - UVa status) in 2010-2015. This book is used in my course in School of Computing, National University of Singapore: CS3233 - Competitive Programming (2009-present) and available for wider audiences since 2010.

This book contains a collection of relevant data structures, algorithms, and programming tips written for University students who want to be more competitive in the ACM International Collegiate Programming Contest (ICPC), high school students who are aspiring to be competitive in the International Olympiad in Informatics (IOI), coaches for these competitions, those who love problem solving using computer programs, and those who go for interviews in big IT-companies.

Our objective in writing this book is similar with the ICPC vision: To further improve humanity by training current students to be more competitive in programming contests. The possible long term effect is future Computer Science researchers who are well versed in problem solving skills.

Target audience: The reader must have some background knowledge in basic data structures, algorithms, and programming languages. Typically, a 2nd year Computer Science students in a University (who have passed a kind of "programming methodology" and "basic data structures and algorithms" modules) or selected high school students who are preparing for National or International Olympiad in Informatics (and thus have done self-study on year-1 University CS curriculum) should have the necessary background. We use both C++ and Java code to illustrate the algorithmic concepts, i.e. we dislike vague pseudo-code commonly found in many other Computer Science textbooks.

Once a while, Lulu offers promotion (COUPON) code. Please check their main homepage http://www.lulu.com/home to see if one is available before making purchase

"I cannot imagine a better complement for the UVa Online Judge site" -- Miguel A. Revilla, UVa Online Judge site creator, ACM-ICPC Problem Archivist.

"Competitive Programming is a unique resource that I recommend to any student interested in raising their algorithmic programming skills to the next level. It is packed with insightful tips and techniques that are hard to find elsewhere, and remarkably thorough in its use of examples and references to sample problems." -- Brian C. Dean, Associate Director, USA Computing Olympiad.

Links: Table of Contents | Supporting Material | VisuAlgo - Data Structures and Algorithms Visualization | uHunt | UVa | Credits | Facebook | Testimonials | IOI workshop | Author Spotlight

About the Book First Edition *FREE* Second Edition (A5 & Large/A4) *DISCOUNTED*  Third Edition (A5 & Large Hard Cover) *AVAILABLE NOW*
 Number of Pages
 152 (76 double-sided A4 sheets) + 4 pages cover
 262 (131 double-sided sheets) + 4 pages cover
 447 (224 double-sided sheets) + 4 pages cover
 Total Chapters
 7  8  9
 Sample Pages
 Removed, just download the entire e-book below  Click this link (27 from 262 pages)  See the preview pages @ lulu.com
 Selling Price (Printed)

 Now only 8.91 USD -> 7.13 USD
 (i.e. the printing + shipping cost only)
 Get a printed copy of the 1st
edition from lulu
 Now 18.05 -> 14.86 USD (+ shipping cost)
Buy the 2nd edition

 Now 20.96 -> 17.26 USD (+ shipping cost)
 Buy the 2nd and large edition
 29.99 -> Now 26.99 USD (+ shipping cost)
 Buy the 3rd edition (A5 paperback)

 -> Now 35.99 USD (+ shipping cost)
 Buy the 3rd edition (8.25 x 10.75 inch (~2xA5) hard cover)
Selling Price (eBook)  project retired from lulu.com
 simply download the free copy from here
 just 14.32 USD
 just 19.99 USD
 Printed Version Release Date
 Monday, 9 August 2010, before IOI 2010
 Monday, 1 August 2011, after IOI 2011 (A5)
 Thursday, 24 May 2012, the day Steven turned 30 (A4)
 Friday, 24 May 2013, the day Steven turned 31

 eBook Version Release Date
 Saturday, 16 July 2011
 Donate 0.99 USD to lulu for the e-book of 1st ed
 Saturday, 22 December 2012
 Buy e-book of the 2nd edition (only A4 version)
 Wednesday, 31 December 2014
 Buy e-book of the 3rd edition (only A4 version)
 100 copies mark
 Tuesday, 30 November 2010 (~113 days after release)  Thursday, 11 August 2011 (11 days after release) :D
 Tuesday, 28 May 2013 (just 5 days after release :D)
 Sales Status
> 668 copies as of 13 June 2012
(Steven no longer keep track of these numbers)
 > 1005 copies as of 27 July 2012 (A5)
 > 153 copies as of 22 Dec 2012 (A4)
 (Steven no longer keep track of these numbers)
 225 copies as of 13 Jun 2013 (both A5 paperback + hard cover)
 339 copies as of 14 Jul 2013 (both A5 paperback + hard cover)
 ~3000+ copies as of 31 Dec 2014 (lulu + local @ Singapore)
 current rate = still steady at 3-4 books/day in the past 1 year :)
 Errata & plan for next edition  Errata of 1st edition and plan for the 2nd edition  Errata of 2nd edition and plan for the 3rd edition  Errata of 3rd edition and plan for the 4th edition

Note: lulu only accepts PayPal, MasterCard, Visa, Discover, American Express. You need to have one of these cards to buy our book from lulu.