Javascript✅✅✅ || Faster than 100% & Memory less than 100%
\nvar minNumberOfHours = function(power, knowledge, energy, experience) {\n    let hours = 0;\n    for (let i = 0; i < energy.length; i++) {\n        if (power 
```\nvar minNumberOfHours = function(power, knowledge, energy, experience) {\n    let hours = 0;\n    for (let i = 0; i < energy.length; i++) {\n        if (power <= energy[i] || knowledge <= experience[i]) {\n            while (power <= energy[i]) {\n                power++;\n                hours++;\n            } while (knowledge <= experience[i]) {\n                knowledge++;\n                hours++;\n            }\n        } if (power > energy[i] && knowledge > experience[i]) {\n            power -= energy[i]\n            knowledge += experience[i]\n        }\n    } return hours\n};\n```\n![image](https://assets.leetcode.com/users/images/3685a266-8f80-4a6f-bc3d-19195d9c21ab_1661448842.9609663.png)
[]