solve some leetcode & 99 problems