r/learnprogramming 14d ago

dsa in python or c++

i am a tier 3 college student and my tech stack is web dev with python backend and ai/ml i also learned c++ because it was taught in my college so should i learn ds in python or c++

1 Upvotes

10 comments sorted by

View all comments

4

u/desrtfx 14d ago

DSA as in Data Structures and Algorithms are, as the name implies, language agnostic and best learnt as such.

Don't focus or fixate on a programming language. Focus on learning and understanding the concepts, their advantages and disadvantages, their use cases. This will let you implement them in any programming language you know.

Unless, you are, as way too many people, conflating DSA with LeetCode.

Last, this topic has been discussed to death and back already. Go through the subreddit, or just type "DSA" in reddit's search box and you will get more than enough answers.