the source training code for leetcode