Simple Rust 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
```rust []
impl Solution {
    pub fn min_number_of_hours(mut initial_energy: i32, mut initial_experience: i32, energy: Vec<i32>, experience: Vec<i32>) -> i32 {
        let mut hours = 0;

        for i in 0..energy.len(){
            if initial_energy <= energy[i]{
                hours += (energy[i]-initial_energy +1);
                initial_energy = energy[i] +1;
            }

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

            initial_energy -=  energy[i];
            initial_experience += experience[i];
        }

        return hours;
    }
}
```
['Rust']