Soutions to some algorithmic problems on SPOJ, which I wrote back in the day.