When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

letsJustDoIt's blog

By letsJustDoIt, history, 10 months ago, In English

Hello everyone,

Context:

Regrading the books "Competetive Programing Handbook" in C++, do we have Python version of the same? I want to start reading about python to solve problems in CP.

What:

Do we have python version of this book (as the content of the book is very comprehensive) ?

Why:

I want to start code in python and solve the problems using python.

Any alternative suggestion on following any other resources ??

Thanks for suggesting any alternatives if you have any.

Kind regards.

  • Vote: I like it
  • -6
  • Vote: I do not like it

»
10 months ago, # |
  Vote: I like it 0 Vote: I do not like it

The CodeChef tutorial is good

Although the Codeforces community believes that this is not beneficial, it is indeed a good option for beginners to get started.

  • »
    »
    10 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thank you for your suggestion! I really appreciate your input. :)

»
10 months ago, # |
  Vote: I like it +6 Vote: I do not like it

I think even if there are any books like that written in python they won't be nearly as good (since all of the main ones are in c++). I would suggest still reading all of the resources in c++ and converting it (either in your head or actually writing it) into python as an exercise. Most of the handbook's code snippets read a lot like pseudocode and it even tells you how c++ syntax works at the beginning.

I really suggest being able to read other languages as a useful skill in general.

If you really can't bear reading the c++ in the handbook, for every algorithm it mentions you can try searching it up on GeeksForGeeks, as they have python translations for almost everything that is on the website.

  • »
    »
    10 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thanks a lot, I would really thank you for your suggestion. :)

»
10 months ago, # |
  Vote: I like it +17 Vote: I do not like it

This is like making soup in a teapot. You can but why, it just has way more drawbacks than benefits.

  • »
    »
    10 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Xellos Thanks for the reply, would you recommend any alternative sources for that, that would really help :) Thanks a lot :)

    • »
      »
      »
      10 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Try competitive programming handbook in C++, and learn to solve anything non-trivial in C++.