code for http://oj.leetcode.com/