Basic Mathematical Logic - Beats 100%
Intuition
Basic Mathematical Logic
Approach
Calculate the maximal grid spaces available (nxn)
Calculate the maximum number of crates for weight restriction.
Tak
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

- Basic Mathematical Logic

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

- Calculate the maximal grid spaces available (nxn)
- Calculate the maximum number of crates for weight restriction.
- Take minimum of two outcomes

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

$$O(1)$$

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

$$O(1)$$

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