Leetcode solutions in Java edition.