r/DSALeetCode • • 2d ago

DSA PYTHON VS JAVA

I am having a hard time for the past few days in deciding whether I should start and learn dsa in python or java. I have no knowledge of c++ so it's not in my mind at all. I don't know whether to choose python or java. I am interested in data science a bit so should I go with python?. But it seems like python makes coding simple and so one cannot understand the depth and all. I also saw somewhere that execution speed is faster in java than python. Does it affect much? Which language should I go with?

7 Upvotes

14 comments sorted by

4

u/Budget_Many_2802 2d ago

i have been doing DSA exclusively in python only
currently in 5th sem

which sem are you in btw?

1

u/Apart-Customer-4066 2d ago

3rd

2

u/Budget_Many_2802 2d ago

damn bro

yeah i mean python is good

completed like 200 problems in it

just follow a singular sheet like strivers A2Z and stuff and do it neatly

1

u/Apart-Customer-4066 2d ago

Okayy thank uu

1

u/Budget_Many_2802 2d ago

dont care about the implementation unless your goal is to go into embedded , IoT side of things
python is an interpreted language with GIL so unless your goal is to work with low level pointers , memory , register banks use c/c++

with win32 extension you can access the virtual memory but again prefer c/c++ for it

but if your goal is modern backend , RAG , ML use python.

1

u/Apart-Customer-4066 2d ago

Well then I will go with python

3

u/rogerkd 1d ago

Choose whatever is your dev language

2

u/Apart-Customer-4066 1d ago

I haven't decided that too

2

u/Top-Chipmunk6607 2d ago

Go for python

1

u/Apart-Customer-4066 2d ago

I was thinking of it too. I am just confused if I go for python, I will not understand the depth

2

u/Top-Chipmunk6607 1d ago

Industry is moving towards rust. Go with python it will open a door for AI ML. If you want to explore backend dev. Go with rust and go

1

u/Apart-Customer-4066 1d ago

Yeahh thnx will go with py

1

u/Top-Chipmunk6607 1d ago

Follow and DM if you need any quick guidance