Code practice of LeetCode