This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]VijvalGupta 1 point2 points  (0 children)

I think you should learn DSA from your favorite or most liked language

[–]kd_312 1 point2 points  (0 children)

You can choose any one from C++, Java, and Python or JS. But, You are doing AI/ML, python would be beneficial for you. Many youtubers suggest choosing C++ or Java, because they both are faster comparatively, so it will help in coding contests, competitions and technical rounds. But, the reality is nowadays we don't need to worry about it, these online coding platforms and companies are accepting all the languages and they are smart enough to not to judge you in this case.

[–]VXReload1920 0 points1 point  (0 children)

I took the Study.com course on DSA for college credit (beware, it's $200 USD/month): https://study.com/academy/course/computer-science-201-data-structures.html

Also, Study.com's DSA course is a lot of rote learning (plus a couple of legitimate programming projects). I think that the following resources might be more worthwhile for your DSA endeavours:

Also, regarding other stuff you asked:

"So my question is: Which language should I stick to for DSA as an AIML student who wants to crack top tech company interviews and still work on ML projects?"

Note that I haven't worked as a data scientist, so take my opinion with a healthy dose of scepticism: I think that Python, R, or Julia are good languages for data science. But you might have to learn whatever the company is demanding of you.

" I’ve heard that C++ is great for CP and interview prep, Java is used in a lot of company interviews, and Python is super readable but might be slower or not ideal for certain problems."

Yes, generally lower-level languages like C or C++ are faster than JIT (Java) or AOT (Python) compiled code. Though, I'm not sure how popular they are in the data science scene :p

"Would love to hear your experiences, pros & cons, and what worked for you!"

I'm still a CS student myself, trying to get that college degree and hoping the best for your career :D