some realization about the LeetCode