Use min to find max.
IntuitionWe have to determine the maximum number of boxes we can take.We can reach the constraints in two ways either space or weight. We can take the lesser of
# Intuition
We have to determine the maximum number of boxes we can take.We can reach the constraints in two ways either space or weight. We can take the lesser of the two constraints because if we reach the maximum space before weight then we take the maximum space and vice versa.

# Approach
We return the minimum of n*n(maximum space) and number of box according to weight(maxWeight // m) and we use "//" because number of box must be an integer.

# Complexity
- Time complexity:
$$O(1)$$ 

- Space complexity:
$$O(1)$$ 

# Code
```python3 []
class Solution:
    def maxContainers(self, n: int, w: int, maxWeight: int) -> int:
        return min(n*n, maxWeight // w)
```
['Python3']