Should I Stick with Python for DSA or Switch to Java/C++?
Asked by
CuriousCoder42
I'm currently learning data structures and algorithms (DSA) and started with Java, but I found it a bit lengthy. I then tried C++, which I wasn't very comfortable with, and now I'm using Python since I like its syntax. My long-term goal is to enter the data analytics field, and I've heard from my college placement cell and seniors that I should consider switching to C++ or Java because some companies don't accept Python in technical interviews. Is this true? Should I stick with Python or explore other languages?
Answers
When it comes to learning the concepts of DSA, the programming language you choose isn't what matters mostโthose concepts are universal across languages. However, for job interviews, being familiar with various languages can be beneficial. You could learn Java or C++ while continuing to work on DSA in Python; that way, you cover all your bases!
Reply to this answer
If your goal is data analytics, I recommend you stick with Python, and definitely add SQL and maybe graphQL too. Most analytics work is done in Python or R, so interviews will likely lean toward those languages. If you're aiming to build applications or similar projects in the future, you might then consider picking up a typed language like Java or C++.
CodeCrafter09: So should I start with learning C++ or Java alongside DSA, or focus solely on Python for now?
Reply to this answer
Add your answer
Answers are reviewed before publication.
DataNinja07: Iโm focused on getting a job too, but Iโve heard varying opinions about companies not accepting Python in interviews. Does anyone have insights on this?