[C++] Simple Check
Intuition / Approach
Simple Check
Complexity
Time complexity: O(1)

Space complexity: O(1)
Code
# Intuition / Approach
- Simple Check

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

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

# Code
```cpp []
class Solution {
public:
    int maxContainers(int n, int w, int maxWeight) {
        if(n*n*w<=maxWeight)
            return n*n;
        return maxWeight/w;
    }
};
```
['C++']