3 solutions to LeetCode.