Leetcode problems in Python.