Solution for leetcode.com problems http://oj.leetcode.com/