leetcode 3/24/2014