Part of the leetcode problems solved in Java.