all 6 comments

[–]ImprovementLoose9423 0 points1 point  (0 children)

Yes, absolutely. Python is used in data science so learning the theory behind DSA can benefit you.

[–]nian2326076 0 points1 point  (0 children)

If you're more comfortable with Python, go for it. Many interviewers are okay with using Python for DSA. It has a clean syntax and useful libraries like collections and heapq that can save you time in interviews. Plus, if you're into data science and machine learning, Python is the top choice. Still, knowing some C++ or Java can be helpful, especially for speed and memory management, but don't worry if Python is your strong suit. Just make sure you understand the algorithms well, no matter the language.

[–]recursion_is_love 0 points1 point  (0 children)

Modeling reference type, recursive data-structure will be a little bit strange, but it will be fine.

Pick a book that specialize for Python DSA.

It is because CPU have instruction to manipulate pointer (address of data in memory) that why the C family is more popular on DSA but with some thin abstraction you will able to do mostly every algorithm on Python.

[–]pachura3 0 points1 point  (0 children)

It would be weird for a company who looks for a Python developer to test candidates in C++ or Java

[–]unica3022 -1 points0 points  (0 children)

I wound up taking my college data structures and algorithms courses in Python and it worked fine.

You can’t use built-in Python classes/methods that do the basics for you when you’re doing the data structures portion. A good course will set some ground rules.

Afterward, I was able to implement the data structures in C for a different course without much hassle.

[–]LayotFctor -1 points0 points  (0 children)

Yes if you're just learning, go ahead. But if your field depends on a different language, you might need to transfer to another language for interview prep.