r/datastructures • u/Anushagowda22 • 3d 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??
3
Upvotes
2
u/RememberMe-2027 2d ago
Java would make it easier for you to read and explicitly understand what you are writing in detail. Python has shorthand syntax for many things.
In an interview, you would need to be quick with implementation, so Python can help. But don't really worry about it much. Most online test portals are well built to accept both solutions as long as the logic is correct.
Where are you learning it from? Curious on why such confusion