Math | C++ | Simple One liner
Complexity

Time complexity:
O (1)


Space complexity:

Code

# Complexity
- Time complexity:
    O (1)

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->
    O (1)
# Code
```cpp []
class Solution {
public:
    int maxContainers(int n, int w, int maxWeight) 
    {
        return ((maxWeight / w) <= (n * n)) ? (maxWeight / w) : (n * n);
    }
};
```
['Math', 'C++']