More solutions to leetcode