My codes for leetcode.