DEV Community

Discussion on: Do you think there is a language better suited for solving data structures and algorithms?

Collapse
 
djtai profile image
David Taitingfong

I prefer Java and Python. I've found that completing any sort of DS&A problem in Java will generally allow me to be able to solve it in C++/C# (syntax is pretty similar I think). As for Python, I simply like the accessibility and ease of use. You can literally open a terminal window (Mac and Linux at least), type "python", and start hammering away at problems. It's also a lot less to type.

When I have trouble remembering how certain Data Stucs or algorithms work, I use programming-algorithms.net.

Collapse
 
piczmar_0 profile image
Marcin Piczkowski

Java 9 recently released REPL which allows you the same, open Java shell and evaluate the code you type in.

Collapse
 
djtai profile image
David Taitingfong

I didn't know that! That's pretty cool, I'll have to check that out - thanks for the info.