Solutions to a few leetcode problems.