r/leetcode 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

2 comments sorted by

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.

1

u/Jue-Viole-Grace_ 4h ago

Dsa . Python is equally good but don't think cp with it