solved some leetcode problems