Solutions of leetcode in python