Should I Start Learning DSA with C++ or Python?
Asked by
CuriousCoder97
Hey folks! 👋 I'm about to dive into Data Structures and Algorithms (DSA), and I'm torn between using C++ or Python for my studies. I've previously learned Python in high school, but I want to make sure I pick the right language for this journey, so any advice would be greatly appreciated!
Answers
You know, it really doesn't matter much which language you use for DSA. The concepts are the same no matter what language you choose. Since you have some background in Python, it might be best to stick with that. If you're in college and they teach DSA in a different language, just go with that instead.
Reply to this answer
Totally agree! Learning DSA is more about understanding the concepts than the actual language itself. So feel free to pick whichever one you feel comfortable with.
Reply to this answer
Honestly, if you're looking to get a solid footing in job interviews, I recommend considering Java. A lot of companies prefer candidates who are familiar with Java due to their existing codebases. However, if you're set on C++, that's totally fine, too! Just avoid Python for DSA โ it can be limiting. Also, if you're interested in learning programming from the ground up, starting with C will really help you understand how systems work, even though that's not directly related to DSA.
Reply to this answer
Add your answer
Answers are reviewed before publication.
QuerySeeker21: Why do you say to avoid Python for DSA?
CuriousCoder97: Thanks! Iโll take all your suggestions into account before I start!