leetcode 5/13/2014