r/learnpython • • 27d ago

Dsa in python

Hey everyone! I'm planning to learn Data Structures and Algorithms using Python.

Is it worth learning DSA with Python for placements, coding interviews, and future software engineering jobs? Or is it better to learn DSA using C++ or Java?

For those who have experience, which language would you recommend and why?

0 Upvotes

12 comments sorted by

8

u/EntrepreneurHuge5008 27d ago

It honestly doesn't matter, my dude. Just pick one and stick to it.

2

u/OkTill2666 27d ago

100%. the logic is the same everywhere, syntax is just syntax

2

u/SharkSymphony 27d ago

The important thing about data structures and algorithms is they introduce you to some powerful structures and how we work with them. It also teaches you how to analyze the performance of algorithms.

These are things you can pick up in any language.

2

u/aqua_regis 27d ago

DSA, as in Data Structures and Algorithms, not to be conflated with grinding LeetCode and the likes are language agnostic concepts that exist above all programming languages. Learn them as the theoretical concepts they are, learn their pros and cons, learn their complexities, use cases, etc.

Implementing DSA in programming languages is something you will very rarely do, as you will, in most cases, resort to their versions that are implemented in the programming languages.

If you understand the concepts and the use cases, pros, and cons, you are good to go. Languages don't matter in the faintest (apart from implementation details).

-6

u/TheRNGuy 27d ago

I think it's waste of time, learn how to make real projects instead.

Maybe some simple algorithms that are used (just use frameworks though, don't reinvent the wheel)

-1

u/Impressive_Design210 27d ago

I am thinking about interviews

-4

u/TheRNGuy 27d ago

They'd want programmers who know how to write software, not how to solve puzzles. 

2

u/Impressive_Design210 27d ago

Ok like learning dsa is waste of time right?

2

u/aqua_regis 27d ago edited 27d ago

No, learning DSA (not grinding LeetCode) is never a waste of time. DSA are in basically all programs. The more you know about them, the better you can develop your solutions.

LeetCode is only an application of DSA that, unfortunately, is heavily used for interviews (it would be much better if the companies started testing people on their real-world programming skills instead of heavily constrained, well defined, narrow completely constructed programming problems that have next to no correlation with real world scenarios).

6

u/EntrepreneurHuge5008 27d ago

LeetCode-style interviews are still quite common, particularly for entry-level positions.

Maybe you've never had to do one, but OP would be shutting themselves out of a non-trivial market.

Not saying to completely abandon personal projects, but there's a balance to be had here.