Monthly Archives: July 2008
Memoizing with ETS
In my 3n + 1 post rickhg12hs suggested I use the erlang ets module to memoize my solution. To time the code before and after changes I found this little gem from David King -module(timer). -export([timer/3]). timer(Mod,Fun,Args) -> Start=erlang:now(), … Continue reading
Curse of the Azure Bonds – build 1.0.13
The game can now be completed. I finished my dungeon crawl last night, with the help of the magic God’s Intervene cheat. Here are the changes in build 1.0.13: Fixed issues stopping the end-game sequence from working, so the game … Continue reading
The Trip – 110103 in Erlang
The third of my Programming Challenges solutions is for The Trip 110103 This problem is great for making you think. Key points are; you cannot have half cents, and you have to find the minimum money needed to balance costs … Continue reading
3n + 1 in Erlang
This is my second Programming Challenges solution written in Erlang. First here. This time I chose the first problem 3n + 1 #110101. It is a little bit of a cheat doing it in Erlang, as the major point of … Continue reading
Reverse And Add 110502 in Erlang
Carrying on from Cedric’s Challenge (C#, Erlang) I decided to do some of the Programming Challenges problems in Erlang, because the problems are small, but fun. My first is Reverse And Add #110502 and here is my solution: I’m not … Continue reading