You are viewing a single comment's thread. Return to all comments →
c#
public static int chocolateFeast(int n, int c, int m) { int barCount = n / c; int wrappers = barCount; while(wrappers >= m) { barCount += wrappers / m; wrappers = (wrappers / m) + (wrappers % m); } return barCount; }
Seems like cookies are disabled on this browser, please enable them to open this website
Chocolate Feast
You are viewing a single comment's thread. Return to all comments →
c#