for leetcode
mixed