0ms 100% O(1) fmin
O(1)Cfmin() from the math libraryC++
O(1)


# C
fmin() from the math library
```c []
int maxContainers(int n, int w, int maxWeight) {
    return w ? fmin(n * n, maxWeight / w) : 0;
}
```

# C++
```cpp []
class Solution {
public:
    int maxContainers(const int n, const int w, const int maxWeight) {
        return w ? std::min(n * n, maxWeight / w) : 0;
    }
};
```


['C', 'C++']