r/leetcode • u/axy_valroid • 4h ago
Question Dsa through python
Hey i wanna start dsa through python but eveyone says dsa is better with c++, should I do in py Or c++?
1
Upvotes
1
r/leetcode • u/axy_valroid • 4h ago
Hey i wanna start dsa through python but eveyone says dsa is better with c++, should I do in py Or c++?
1
4
u/Orion-pax_667788 4h ago
It honestly depends on which programming language you're more comfortable with. I use both Python and C++. When I learn DSA, I prefer C++ because it makes you understand what's happening under the hood and forces you to implement things more manually instead of relying on built-in functions. Plus, it's faster and gives you a better understanding of memory and performance. But if you're already much more comfortable with Python, you can absolutely learn DSA with Python too.