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