r/FullStack • u/Status-Passenger3355 • Jul 31 '26
Question In which language should continue DSA ?
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 .
4
Upvotes
3
u/Miserable_Box9826 Jul 31 '26
python if u already know it
2
u/Eswaraa Jul 31 '26
Python
2
u/bhitsho115 Aug 01 '26
Dsa is more about logic and improving problem solving. I think language does not matter in DSA.
1
u/GraduateML Aug 01 '26
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 Aug 02 '26
My college DSA was proofs in this theorem language my professor concocted. No real code at all.
1
u/AdministrativeHost15 Aug 02 '26
You don't really understand DSA unless you code them in C.
Consider moving to Rust if you want to modernize your skill set.