JavaScript - JS
```javascript []
/**
 * @param {number} n
 * @param {number} w
 * @param {number} maxWeight
 * @return {number}
 */
var maxContainers = function (n, w, maxWeight) {
  return Math.min(Math.floor(maxWeight / w), n * n);
};
```
['JavaScript']