Solutions to http://www.reddit.com/r/dailyprogrammer problems