[Python3] simulation
Please pull this commit for solutions of weekly 307. \n\nIntuition\nHere, we can simply run a simulation to progressively check each energy and experience. If t
Please pull this [commit](https://github.com/gaosanyong/leetcode/commit/b7391a11acc4e9dbe563ebef84f8d78f7943a0f7) for solutions of weekly 307. \n\n**Intuition**\nHere, we can simply run a simulation to progressively check each energy and experience. If the current energy or experience value is not enough to win. Adjust the value and update the answer. \n\n**Analysis**\nTime complexity O(N)\nSpace complexity O(1) \n```\nclass Solution: \n    def minNumberOfHours(self, initialEnergy: int, initialExperience: int, energy: List[int], experience: List[int]) -> int:\n        ans = 0 \n        for x, y in zip(energy, experience): \n            if initialEnergy <= x: \n                ans += x + 1 - initialEnergy\n                initialEnergy = x + 1\n            if initialExperience <= y: \n                ans += y + 1 - initialExperience\n                initialExperience = y + 1\n            initialEnergy -= x\n            initialExperience += y \n        return ans \n```\t\t
['Python3']