Leetcode practices with python