Leetcode solutions on 12/23/2014