Ask HN: Best programming language to learn Algorithms?

1 points by sanosuke ↗ HN
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?

5 comments

[ 4.3 ms ] story [ 22.4 ms ] thread
Learning algorithms should be language-independent.

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

(comment deleted)
'C' is the best for anyone with minimalist mindset
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}: