Java, easy, faster than 100%
\n\nclass Solution {\n    public int minNumberOfHours(int initialEnergy, int initialExperience, int[] energy, int[] experience) {\n        int sum = 0, exp =0;\
```\n\nclass Solution {\n    public int minNumberOfHours(int initialEnergy, int initialExperience, int[] energy, int[] experience) {\n        int sum = 0, exp =0;\n        \n        for(int n : energy){\n            sum += n;  //total energy \n        }\n           int totalEnergy = (initialEnergy>sum) ? 0: (sum-initialEnergy) + 1 ; //total energy required\n              \n        for(int n : experience){\n            if(initialExperience > n){\n                initialExperience += n;\n            } else{\n                exp += (n - initialExperience) + 1; //exp holds additional experience required for particular itertion\n                initialExperience += exp+n;  //upadate initial experience for next iteration\n            }\n        }\n        return totalEnergy + exp;\n    }\n}\n```
['Greedy', 'Java']