Solutions for leetcode online judge.