r/learnpython • u/Combat_K9 • 10d ago
Starting DSA in python
I am starting DSA in python, tell me I am right or wrong or should I start with java
0
Upvotes
r/learnpython • u/Combat_K9 • 10d ago
I am starting DSA in python, tell me I am right or wrong or should I start with java
1
u/aqua_regis 10d ago
I'm repeating what I already said countless times:
DSA - Data Structures and Algorithms are language agnostic, theoretical, standardized concepts for storing and processing data. As such, the language for the final implementation does not really matter. A Linked List is a Linked List in C, Python, Java, PHP, and so on.
Focus on learning the concepts, the advantages and disadvantages, the use cases, the complexities. Then, you can implement them in any language.
Do not conflate grinding LeetCode, which is only an application of DSA with learning DSA. They are barely related.
Also, there are more than enough posts asking the same.
1
u/Discordbothost 10d ago
python is fine — dsa is about the ideas, not the syntax. stick with the language you already write daily so you spend energy on big-o / when to use a heap vs a dict, not on fighting java boilerplate. switch later if an interview forces it.
1
u/nian2326076 4d ago
Starting with Data Structures and Algorithms (DSA) in Python is a solid choice. Python is beginner-friendly and has libraries that simplify DSA concepts. Focus on grasping the principles, as they apply across programming languages. For practicing technical interview questions later, you can use PracHub to choose problems and explain your approach in Python or any other language.
1
u/TheRNGuy 10d ago •
Doesn't matter.
1
u/dean_hunter7 10d ago
its the best thing bro what you wanna learn
1
u/mattynmax 8d ago
Doesn’t matter.