Java Easy solution
Intuition"Calculate the number of decks, then determine how many containers are needed to hold all the weights."Approach"Calculate the number of decks, then det
# Intuition
"Calculate the number of decks, then determine how many containers are needed to hold all the weights."

# Approach
"Calculate the number of decks, then determine how many containers are needed to hold all the weights."

# Complexity
- Time complexity:
O(n)

- Space complexity:
O(n)

# Code
```java []
class Solution {
    public int maxContainers(int n, int w, int maxWeight) {
       int deck=n*n;
       int containers=maxWeight/w;
       return Math.min(deck,containers);

    }
}
```
['Java']