Solutions to the leetcode online judge