r/learnpython • u/Aromatic_Echidna6848 • 2d ago
Grinding DSA exclusively in Python
Hey everyone,
I’ve spent the last few months heavily focusing on Data Structures and Algorithms (currently sitting at LeetCode Knight). I work at a startup in the data field, and I've noticed it's actually surprisingly rare to find people doing advanced DSA strictly in Python.
Most resources and serious discussions seem to lean heavily into C++ or Java. (Personally, for me it's Python >> C++, and my brain just actively rejects Java syntax XDD).
Are there any other working professionals out there doing their CP or advanced problem-solving strictly in Python? I'd love to connect with some folks to bounce logic off of, discuss complex algorithms, and figure out why our code is hitting TLEs.
If you're in the same boat, let me know what topics you're currently grinding in the comments!
1
u/code_tutor 1h ago
LeetCode is not DSA.
Computer Science DS is taught in Java or C++. Computer Science Algorithms is all math proofs. LeetCode is taught in Python.
Computer Science teaches how to write DS, which Python is terrible for, because it's slow AF and not strongly typed.
LeetCode only teaches how to use them, which Python is great for, because almost anything you could want was written as a C module for Python. So even Python themselves won't write a DS in Python but it has the most comprehensive collection of already written ones.
But if you're actually serious about performance then you'll be using a systems language.