Solve problems from LeetCode.