[Kotlin/Python] Lazy Training
Kotlin\n\nclass Solution {\n    fun minNumberOfHours(initialEnergy: Int, initialExperience: Int, energy: IntArray, experience: IntArray): Int {\n        var tra
Kotlin\n```\nclass Solution {\n    fun minNumberOfHours(initialEnergy: Int, initialExperience: Int, energy: IntArray, experience: IntArray): Int {\n        var training = 0\n        var curEn = initialEnergy\n        var curEx = initialExperience\n        for ((en, ex) in (energy zip experience)) {\n            if (curEn <= en) {\n                training += en - curEn + 1\n                curEn = en + 1\n            }\n            if (curEx <= ex) {\n                training += ex - curEx + 1\n                curEx = ex + 1\n            }\n            curEn -= en\n            curEx += ex\n        }\n        return training\n    }\n}\n```\n\nPython\n```\nclass Solution:\n    def minNumberOfHours(self, initialEnergy: int, initialExperience: int, energy: List[int], experience: List[int]) -> int:\n        training = 0\n        curEn = initialEnergy\n        curEx = initialExperience\n        for en, ex in zip(energy, experience):\n            if curEn <= en:\n                training += en - curEn + 1\n                curEn = en + 1\n            \n            if curEx <= ex:\n                training += ex - curEx + 1\n                curEx = ex + 1\n            \n            curEn -= en\n            curEx += ex\n        return training\n```
['Python', 'Kotlin']