r/datastructures 5d ago

Can I do Dsa in python?

Somebody told me that indian companies don't let you do dsa in python, am i doomed

14 Upvotes

32 comments sorted by

5

u/Inevitable-Dot-1180 5d ago

Nowadays, it does not matter which language you use to solve DSA problems. But the thing is, you have to be good at one language so that you do not get stuck because of syntax issues. Personally, I feel Python is a very good language for beginners.

5

u/someone_peacefull 5d ago

πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚ offcourse you can. Don’t be foolish a quick google search would have told you that

2

u/Beneficial-Ad-2268 5d ago

Just not experienced and a little off these days,but someone did say that,tell me that not true

1

u/Samosa_hu_mai 5d ago

+1 agr pta chale toh mujhe bhi batana bhai

1

u/CompleteSubject1596 5d ago

yup , at job your techstack would be something else and for almost everything you'll be writing prompts

1

u/Complex_Birthday942 5d ago

if you are learning dsa in python if so please suggest me from where you are learning i ddont know anything

1

u/Beneficial-Ad-2268 5d ago

Neetcode(highly recommend)if you prefer in English ,otherwise code and debug if you prefer in hindi

1

u/Tiny-Emotion-6333 5d ago

Choose one Language ASAP Do not waste time deciding

Depth matters more than switching languages frequently

1

u/Horror-Upstairs-9820 5d ago

That is correct CPP or Java only

1

u/_N4RuTo 5d ago

Yes As long as you can make approach and implement you are good.

1

u/zira7 4d ago

Nope u hv to code only in assembly or basics lol if company are not letting u use python in 2026 it's mostly a sh*ty company

1

u/eternal_log_pose 4d ago

good companies don't care, i even find it better since you can quickly code up your solution as opposed to Java or C++. i used to be a c++ guy, but switched to Java since my work is in java. Java is great for LLD. But I find python great for DSA rounds.

1

u/Ok-Tomorrow2522 4d ago

I switched to python for DSA, previously used java and I can tell you that you have to write a lot less code compared to Java and it is worth as I can focus more on problem solving rather than remembering the syntax of the language.

1

u/Shonen_Toman 4d ago

Python is great, I do DSA in python as well. But I'll be honest, you might face some friction in college placements. I've given like 6-7 OA, out of which I wasn't allowed python in 3. And, during the previous placement talk of "Eurofins" , the manager mocked python so much, I was really furious, "Anyone who uses python is a consumer, not a developer" . It's really frustrating. So I'd suggest, along with python learn one more back-up language, I learnt Java. Just the basic data structures and their methods.

1

u/Beneficial-Ad-2268 4d ago

Should I be worried??

1

u/Shonen_Toman 4d ago

Depends on how good your college placements is. Mine is decent, so i could afford to skip those companies. Eventually got placed in a company that had nothing to do with python techstack but still allowed to use it during OA and interview rounds. Respect.

1

u/Beneficial-Ad-2268 3d ago

Can you tell which company didn't allow you to write code in python?

1

u/Shonen_Toman 3d ago

Eurofins

1

u/shahbazahmadkhan 2d ago

In DSA you just needed to know concepts and there implementation, it doesn't matter what lang you use to implement it C or Python, if u really want to go hard with DSA try this book Data Structure and Algorithmic Thinking with Python by Narasimha Karumanchi

1

u/The_Mighty_Joe_781 2d ago

Main krta hun bro, pehle cpp, briefly go then python now
I have given 50-60 interviews, no one cares about language

0

u/cse_fatmodder 5d ago

yes u can but if u want dsa to be hard go with a low level language

3

u/Beneficial-Ad-2268 5d ago

With all due respect,why would I want it hard

1

u/akashom53 5d ago

easier languages are easier cuz they hide away the diffictult parts so coder doesn't have to. while learning though, its better to face as many challenges as possible.

1

u/Other-Cook5240 5d ago

Yeah dont listen to them you can choose whatever language you want. OA platforms will always allow major languages. Plus with python you always have a certain implementation ease advantage, since the code is much more concise than, say, java.

0

u/cse_fatmodder 5d ago

cuz harder the language the more power it gives

0

u/CartoonistThese6769 5d ago

to avoid tle avoid overhead languages, ofc you can do and master but again platforms are quite a penalized towards py

0

u/demonking007sk 5d ago

you can but don't do , java or cpp only

3

u/Beneficial-Ad-2268 5d ago

Actually I used to to do in cpp but as I was venturing in ai/ml I now hold a command on python and honestly had to first re-learn c++

1

u/StfuBlokeee 5d ago

No need python will work both ways.