Given two integersN andM, where N is the number of friends sitting in a clockwise manner in a circle and M is the number of cakes. The task is to calculate the left number of cakes after distributingi cakes toi’thfriend. The distribution of cakes will stop if the count of cakes is less than the required amount. Answer IN Python Only.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here