solve some problems on leetcode.com