Leetcode practice(the 3rd time)