Hacker News new | ask | show | jobs
Ask HN: Best programming language to learn Algorithms?
1 points by sanosuke 4060 days ago
What would be your recommendation about the most suitable programming language to learn Algorithms?

Actually tempted by Robert Sedgewick's C series. What do you think?

4 comments

Learning algorithms should be language-independent.

Use whatever language you're most comfortable with, or start with C.

python would let you concentrate on the code and not on other issues. It also has quick access to many data structures like sets and maps with shorthand syntax.

e.g. checking for set membership: if 3 in {1,2,3,4,5}:

'C' is the best for anyone with minimalist mindset
Rust