It was a while back and I wanted to come up with programming exercises for ruby.
This time, it’s Erlang.
I dug up the code I had done then. I felt that I would need this for future reference. Here’s what I coded to learn Ruby:
- anagram/permutations (list/string – difference?)
- tower of hanoi
- reverse polish notation calculator
- n choose k
- threads: print “red” / print “blue”
- threads: multiple dns lookups
- letter histogram
- interactive Celsius/Fahrenheit converter
- roman/arabic numbers converter
To this, I want to add:
- streams? (next business day? next Monday the 17th?)
- subsets of a list
- standard deviation
The advantage of always coding the same algorithm, especially when learning, is that it becomes less about the logic itself, which you presumably already worked out, and more about the language.
It’d be interested to find out what other people are using.