Solutions to leetcode