the code for leetcode