You are viewing a single comment's thread. Return to all comments →
Heres some JS:
let wrappers = Math.floor(n / c); let count = wrappers; while(wrappers >= m){ let add = Math.floor(wrappers/m); wrappers -= (add * m); wrappers += add; count += add; } return count;
Chocolate Feast
You are viewing a single comment's thread. Return to all comments →
Heres some JS: