You are given two integers, money and children, representing an amount of money and a number of children.
You must distribute all the money among the children according to the following rules:
Every child must receive at least
No child may receive exactly
All money must be completely distributed.
Return the maximum number of children that can receive exactly
Constraints:
money
children
You are given two integers, money and children, representing an amount of money and a number of children.
You must distribute all the money among the children according to the following rules:
Every child must receive at least
No child may receive exactly
All money must be completely distributed.
Return the maximum number of children that can receive exactly
Constraints:
money
children