Find minimum number of apples to be shifted so that all baskets contain same apples
Answers
Answered by
3
Step-by-step explanation:
Input: N = 2, R = 1, G = 1
Output: Maximum apple kept is = 1
Input: N = 2, R = 1, G = 2
Output: Maximum apple kept is = 2
Similar questions