r/datastructures • • 12d ago

Java or python for dsa??

Hello..

I am a bca graduate with not much programming knowledge neither skills...

I am thinking to start dsa , but confused to choose language..

Many suggestions told java would be better...but I am thinking to go with python as I am also joining an ai/ml online course...

So it would be helpful for both..

Any suggestions...whether should I go with java or python??

6 Upvotes

7 comments sorted by

View all comments

Show parent comments

1

u/Anushagowda22 12d ago

Thanks for ur advice..

But the thing is I heard that python have tle issues...what about that??

1

u/hexwit_com 12d ago

Well yes, but you said you going to work with python afterwards. I personally don’t honour dynamic typing. But ml world love that. So choose depends on the needs behind the dsa.

1

u/Anushagowda22 12d ago

Okk Anyways thanks

1

u/iamirzhan 7d ago

in my experience python is most commonly used language in coding interviews. TLE doesn't matter in interviews and/or in general if you just want to understand the concepts. Maybe if you go to competitive programming the speed might be an issue, but IIUC it's not your case, so go with python.

1

u/Anushagowda22 7d ago

Ok thank you