I have been writing python in my everyday work for the last 5 years or so. However, I never took a course on python. I want to prepare for some upcoming job interviews where I will be programming in python. How can I improve my ability to write data structure/algo code in python? I want to gain a similar understanding of what is "fast" in C++ (std::move, copy elison, etc.), but with python. Any suggested resources?
Ask HN: C/C++ developer wanting to learn efficient Python
1–10 of 50 posts
Re: Ask HN: C/C++ developer wanting to learn efficient Python
#2Re: Ask HN: C/C++ developer wanting to learn efficient Python
#3Re: Ask HN: C/C++ developer wanting to learn efficient Python
#4Just read the best Python book that's out there: Fluent Python; enough said!
Re: Ask HN: C/C++ developer wanting to learn efficient Python
#5Re: Ask HN: C/C++ developer wanting to learn efficient Python
#6You don't need a book on Python, you need to practice solving data structures and algorithms problems.
Completely disagree with the recommendation to read Fluent Python, that book has nothing to do with your goals.
> understanding of what is "fast"
Do you mean in terms of performance? Depending on the problem fastest is usually to use libraries instead of native Python code. But that's not really relevant to DS&A interviews.
Re: Ask HN: C/C++ developer wanting to learn efficient Python
#7Re: Ask HN: C/C++ developer wanting to learn efficient Python
#8> How can I improve my ability to write data structure/algo code in python? You don't need a book on Python, you need to practice solving data structures and algorithms problems. Completely disagree with the recommendation to read Fluent Python, that book has nothing to do with your goals. > understanding of what is "fast" Do you mean in terms of performance? Depending on the problem fastest is usually to use librari…
Re: Ask HN: C/C++ developer wanting to learn efficient Python
#9> How can I improve my ability to write data structure/algo code in python? You don't need a book on Python, you need to practice solving data structures and algorithms problems. Completely disagree with the recommendation to read Fluent Python, that book has nothing to do with your goals. > understanding of what is "fast" Do you mean in terms of performance? Depending on the problem fastest is usually to use librari…
I do think there is something to reading Fluent Python. Knowing how to write elegant solutions in python is part of what I have been missing when using python and this book is very good at illustrating this.
Re: Ask HN: C/C++ developer wanting to learn efficient Python
#10Book: High Performance Python