Arrangement
Last updated
Last updated
This problem mainly tests the ability to find pattern. The pattern I have found is below:
The difference between the teams in each room is exactly 1.
The number of rooms that has exactly one more team is m % n.
The base number of team in the room is m / n. Then the other choice is m / n + 1 exactly.