two leetcode problems have been solved