solve some leetcode problems