some solutions for leetcode