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
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!
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!
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.
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!
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
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically