Solution
ApproachNo one line solution, easy to understand.Complexity

Time complexity: O(1)


Space complexity: O(1)

Code
# Approach
No one line solution, easy to understand.

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

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

# Code
```python3 []
class Solution:
    def maxContainers(self, n: int, w: int, maxWeight: int) -> int:
        max_count_of_containers = maxWeight // w

        count_of_cells = n * n
        
        if count_of_cells >= max_count_of_containers:
            return max_count_of_containers

        return max_count_of_containers - (max_count_of_containers - count_of_cells)

```
['Python3']