Linear | O(1) 👽| cpp 🤩
Code
# Code
```cpp []
class Solution {
public:
    int maxContainers(int n, int w, int maxWeight) {
        int total_Containers = n * n;

        int max_Container_loads = maxWeight / w;

        if (total_Containers <= max_Container_loads) {
            return total_Containers;
        }

        return max_Container_loads;
    }
};
```
['C++']