Javascript one line solution
IntuitionJavascript one line solutionComplexity
Time complexity: O(1)

Space complexity: O(1)
Code
# Intuition
Javascript one line solution
<!-- Describe your first thoughts on how to solve this problem. -->

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

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

# Code
```typescript []
function maxContainers(n: number, w: number, maxWeight: number): number {
    //const maxContainers = (maxWeight - maxWeight % w) / w;
    return Math.min((maxWeight - maxWeight % w) / w, Math.pow(n, 2));
};
```
['TypeScript']