Simple Go Lang beats 100%
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```golang []
func minNumberOfHours(initialEnergy int, initialExperience int, energy []int, experience []int) int {
    hours := 0

    for i:= 0; i < len(energy); i++{
        if initialEnergy <= energy[i] {
            hours += (energy[i] - initialEnergy + 1)
            initialEnergy = energy[i] + 1
        }

        if initialExperience <= experience[i] {
            hours += (experience[i] - initialExperience + 1)
            initialExperience = experience[i] +1
        }

        initialExperience += experience[i]
        initialEnergy -= energy[i]
    }    


    return hours
}
```
['Go']