Solved UVa 11239.
Merge branch 'master' of https://github.com/jwill/algorithm-practice