Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python challenge, but for C++ [closed]

Tags:

c++

Does anyone know any site or book that presents problems like python challenge, but for C++?

When I think python challenge, I do not mean only a set of problems to be solved with C++ (for that I could probably use the same problems of python challenge), but rather problems that will probably be best solved using C++ STL, special features of the language, etc.

For example, there is one python challenge that is specifically designed to teach you how to use pickle, a serializing library for python.

Until now, I only know programming contests problems, but they could also be solved with C, java or other languages.

like image 848
d83 Avatar asked Apr 05 '10 14:04

d83


4 Answers

You might like to have a look at Herb Sutter's Guru of the Week series of articles.

like image 168
Rob Wells Avatar answered Nov 09 '22 11:11

Rob Wells


Google Code Jam problems frequently have analyses with snippets of C++ code, probably because C++ is by far the most popular language used for solving code-jam problems. The latter also allows you to see many C++ constructs cleverly employed, as code-jam allows you to download the solutions by all the competitors. As most code is C++, you'll get to learn a lot of nice C++ tricks for efficient code.

like image 36
Eli Bendersky Avatar answered Nov 09 '22 12:11

Eli Bendersky


There are many tasks on Rosetta Code that are not implemented in C++ as yet. Try your hand at those, especially if you can use advanced features (templates, external libraries, etc.) to produce a particularly nice solution. Remember that there is no fundamental reason why any of those tasks should be beyond the C++ language, and there's usually several other implementations in other languages to show you other ways to attempt the task, which can help a lot.

like image 30
Donal Fellows Avatar answered Nov 09 '22 12:11

Donal Fellows


You're going to have a difficult time finding that because C++ provides less for you than almost any other language available. If C++ provides it, it's probably provided by Python or Java or C or any other programming language.

Why not try using some C++ concepts such as the STL to solve Project Euler problems?

like image 1
Billy ONeal Avatar answered Nov 09 '22 10:11

Billy ONeal