Leetcode Implement Dynamic Pricing Algorithms Examples In Python