resolve problems on https://oj.leetcode.com/