my solutions to dailyprogrammer: http://www.reddit.com/r/dailyprogrammer/