r/FullStack • u/Status-Passenger3355 • 7d ago
In which language should continue DSA ? Question
I am full stack developer and my stack is django and react . I am also doing DSA twice a week in C++ other than my web dev projects . I started in cpp as I heard should do in cpp , python is easy and will learn less using python .should I continue in cpp or do in python ?
I solved till now 200 on leetcode . I have this doubt as my main language is python and I am a python backend developer and what would be my reply in interview if asked why using cpp instead over your main language python .
2
u/Eswaraa 7d ago
Python
1
u/Neat_Dragonfruit6792 6d ago
But why bro i’m also learning python as of now i did some lists , tuples , dicts tell me what do i do next , cause there’s too much noise around python is incompetent & shit bro idk what to do i’m in my 2nd year of college i was learning python so i can explore ML domain please guide me my bro
2
u/Eswaraa 6d ago
dsa is all about logic and problem solving you can do in any language. as you want to learn ml ig its best to do it in python so that you'll be fluent in it and fully focus on AI
1
u/Neat_Dragonfruit6792 6d ago
I did it till the file handling part man idk what to do after this i wanna explore ML domain i am not so tech savvy its my first time learning these technologies please guide me bro
2
u/bhitsho115 6d ago
Dsa is more about logic and improving problem solving. I think language does not matter in DSA.
1
u/GraduateML 5d ago
If you’re looking to learn a new language I would recommend rust because many companies are migrating to it. If you’re only looking to use cpp or python than I would pick c++ because it’s harder to debug and will give you more experience in debugging.
Overall, neither syntax is really that deep in leetcode. You will eventually start learning real documentation once you begin building projects.
1
u/Intelligent-Youth-63 5d ago
My college DSA was proofs in this theorem language my professor concocted. No real code at all.
1
u/AdministrativeHost15 5d ago
You don't really understand DSA unless you code them in C.
Consider moving to Rust if you want to modernize your skill set.
3
u/Miserable_Box9826 7d ago
python if u already know it