solutions to problems on oj.leetcode.com