Exercises from http://oj.leetcode.com/