Should I Learn DSA in Python or Switch to C++/Java?

0
21
Asked By CuriousCoder42 On

I come from an AI/ML background and my only programming language is Python. Now, I'm looking to dive into Data Structures and Algorithms (DSA), but my friends are pushing me to switch to C++ or Java. I'm feeling torn about whether it's necessary to switch languages just for learning DSA or if I can stick with Python and still build a strong foundation. I'd love to hear your thoughts on this! Thanks!

5 Answers

Answered By PythonPal On

I actually landed an internship at Amazon by doing all my DSA practice in Python. No need to switch unless you're really wanting to dive deeper into competitive programming. Python is perfectly fine for DSA!

Answered By CriticalThinker On

If your friends are pressuring you, I’d question their understanding of DSA. It’s totally a concept that can be learned in any language. You don’t need to switch to pick it up!

Answered By TheTheoryNerd On

You can even learn DSA using just pseudocode if you want. It can be incredibly effective, and understanding the timeless elements of computer science is what's most important. The language itself isn’t the biggest factor; it’s about the concepts you're grasping.

Answered By CodeExplorerX On

DSA is all about patterns and the underlying concepts. I recommend sticking to Python so you can focus on learning those patterns without the added hassle of learning new syntax. You'll be much better off that way!

Answered By TechieTinker On

Honestly, it doesn't really matter which language you choose for DSA. The concepts of algorithms and data structures aren't tied to any specific programming language. So, if you're comfortable with Python, stick with it!

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.