Solutions to short programming challenges from http://reddit.com/r/dailyprogrammer