Ask Mentors Anything

Get your questions/doubts directly answered by our mentors. Let's get started.

Mentee Question

Asked by Sanjith r

which best programming language according to you can i learn c++ for dsa please tell me. please tell any progamming language i am passionate about learning ML and ds so please tell me the best programming language to learn

Mentors Answer

Answered By Mentor Surbhi Jain

"If you're passionate about learning both Machine Learning (ML) and Data Structures & Algorithms (DSA), choosing the right programming language is crucial.


For DSA, C++ is one of the best choices. It offers powerful Standard Template Libraries (STLs) that make solving complex problems more efficient. C++ is also known for its fast execution, which is an advantage in competitive programming and algorithm challenges.


However, if you're looking to learn ML as well, Python is the go-to language. Python's simplicity, extensive libraries like TensorFlow and scikit-learn, and its widespread use in the ML community make it the ideal choice for machine learning.


If you want to pursue both DSA and ML simultaneously, I would suggest starting with Python. Python is versatile and will allow you to tackle both fields effectively. While C++ is excellent for DSA, Python's balance between ease of learning and applicability in ML makes it a strong candidate for mastering both areas.


Ultimately, the best language depends on your goals, but Python can provide you with the flexibility and tools you need for both DSA and ML."


Answered By Mentor Jay Bhutada

Hi Sanjith, go for Python. Although I would recommend to know C++ also. But strictly speaking for DSA and ML skill up point of view, python would be best. It's much more easier and quicker to start on Python and also it is nothing like c++ is better in terms of functionality coverage.


Jay Bhutada

Jay Bhutada

Mentor

SDE 2

Microsoft Logo

Microsoft

Answered By Mentor Anshul Shalia Kak

Hi Sanjith,


C++ is anytime best when it comes to DSA and efficient to use, you can check geeksforgeeks to learn C++ from scratch.


For Machine Learning Python is the most apt programming language.


Feel free to directly message for further queries or trial sessions.


Answered By Mentor Purvesh Patil

For DSA I can say the best language is C++.

C++ provides you the best STLs and also it’s really processes fast. You can easily grasp the language.

For ML anytime it’s Python.

But if you want to pursue both at a same time then I’ll suggest go with Python.


Purvesh Patil

Purvesh Patil

Mentor

SWE 3

Google Logo

Google

Top Performing Mentors This Week 🔥

Loading...

400+

Book a FREE Trial Session with any mentor of your choice

Book a FREE Trial Session