I intend to buy this book and was wondering if anyone could compare the editions. The C++ version has a better average review score on Amazon, and I was wondering if the problems and solutions are identical in the Python and C++ editions (except for the programming language).
As someone who used C++ in interviews, I would recommend switching to Python. The 2x verbosity factor really makes a difference when you're crunched against writing long lines on a whiteboard. Less time coding, more time thinking.
Problems are the same of course. Solutions vary, I personally prefer the C++ version because some of the Pythonic shorthand they use, while elegant, can be hard to grasp (like using itertools and list comprehension as much as possible). C++ or Java version is more straightforward even if it's more loc.
Makes sense. Thanks Do you know of a good Python itertools tutorial, excluding the docs? I'm a bit of a Python noob but would prefer to master it and interview in it
Python's docs are pretty solid with examples, so I would just reference that.