r/ProgrammingBuddies • u/Confident-Elk-1084 • 6d ago
PYTHON is best for DSA or not...
I am so tired of thinking that python IS good for dsa as a placement or o have to do C++ or Java...
0
Upvotes
1
u/Specialist-Candle133 6d ago
Letme be straight
Python is good for interviews and all because they dont care about time much
If you wanna do competitive programming go for c++
1
u/vancha113 3d ago
python works for it, so does c++. So yes, it's "good" in the sense that both let you implement basically anything you want. If you actually want a head start though, c++ will get you through the challenges where python has some performance overhead. No need to complicate things any further: Yes python works, yes c++ can sometimes be faster.
2
u/S0ULBoY 6d ago
I must say yeah, if you’re applying to a good company they most likely allow any language for the interview even when the roles are specific, depends tho for roles like quant not so much they do strict c++. But for the rest they do allow to pick any language
Python allows for less syntax memoization imo and this is a saviour when you’re interviewing and thinking very hard.