Solutions in Java to LeetCode Online Judge