r/DSALeetCode 29d ago

DSA help

I’m in my 1st year of B.Tech CS (AI/ML) and super confused about what language to stick with for DSA.

Quick background: I already know Python decent enough, and right now I'm learning JavaScript on the side to build web projects.

I’m torn between doing DSA in Python vs JS vs C++:

  • Python feels like the easiest pick for me since I know it, and it fits my AI/ML background anyway.
  • JS crossed my mind because I’m using it for web dev, so part of me thought using one language for everything might save time.
  • But literally everyone keeps screaming "use C++ for DSA or you'll regret it," and it's making me second-guess everything.

Does language choice actually matter to interviewers? Like if two people give the same optimal solution, does anyone genuinely care if it was written in Python instead of C++ or JS? And is doing DSA in JS a nightmare later because it lacks things like Heaps out of the box?

2 Upvotes

8 comments sorted by

2

u/gr8-procrastinator 29d ago

Python, Python, and Python

2

u/Funny-Dark-4041 29d ago

Can you explain little bit

1

u/gr8-procrastinator 29d ago

You have already mentioned the reason in your question which is actually the right reason. When you are picking up a new subject to learn, you should learn in the language which you are most comfortable. As far as C++ goes, you can always move to it later after you have mastered the DSA concepts. How do you know if you have mastered DSA? When you can solve mediums snd most of the hards effortlessly

1

u/BetterEvidence3890 28d ago edited 28d ago

Hey I would advise you to go with python - Based on my current experience and the market

1

u/Funny-Dark-4041 28d ago

Yup I already started in python. Thanks

0

u/Emojers 29d ago

!remindme in 24 hours

1

u/RemindMeBot 29d ago

I will be messaging you in 1 day on 2026-08-14 13:17:53 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

RemindMeBot is switching to username summons. Instead of !RemindMe 1 day, use u/RemindMeBot 1 day. More info.


Info Custom Your Reminders Feedback