Should I Learn Data Structures and Algorithms in Python or Java?

0
7
Asked By CuriousCoder92 On

I'm currently using Unix commands and thinking about switching to a better job. Everyone keeps telling me I should learn Data Structures and Algorithms (DSA) along with some projects. I have basic knowledge of Python and Java; I learned them in college. I'm from a non-CS background, and I prefer Python since I did better in it. But it seems like a lot of people recommend learning DSA in Java or C++. Should I stick with Python, or is it better to learn Java? Why do people suggest using those languages?

3 Answers

Answered By JavaJuggler83 On

You can learn all the fundamentals of DSA and Object-Oriented Programming in Python without any issue. That said, Java was specifically designed with OOP in mind, which might make it feel more intuitive for learning those concepts. I took a great course on Java that really helped clarify DSA principles and best practices, so if you feel overwhelmed by it, that might be worth looking into.

CuriousCoder92 -

I'll definitely check that course out, thanks!

Answered By TechieTalks1 On

It might be a good idea to check with people in those industries who recommend C++ or Java. Generally, many of us say that DSA isn't tied to any specific language—it's all about grasping the concepts. You can absolutely learn it in whichever language you're comfortable with, like Python!

CuriousCoder92 -

Okay, that makes sense. I’m sticking with Python then!

Answered By ScriptNinja19 On

Honestly, if you're doing scripting, Python is usually all you need. But it sounds like you're aiming for something beyond that, right?

CuriousCoder92 -

I don’t want to just do scripting, I'm looking for deeper knowledge.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.