You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
''' You are given a number of boxes containing variable number of balls. You will iteratively pick up the balls untill and unless there are no balls left in any box.
The condition is that during every iteration you have to select box that contain minimum number of balls, and pickup the same amount of balls from all other boxes.
If a box gets empty, you throw away that box. Given the initial number of balls in n boxes, print how many boxes are left before each iteration untill there are none left. '''