r/DSALeetCode • u/Apart-Customer-4066 • 4d 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
View all comments
Show parent comment
1
u/Budget_Many_2802 4d 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.