You are viewing a single comment's thread. Return to all comments →
Javascript one-line:
return calorie.sort((a,b) => a-b).reverse().reduce((t,a,i) => t + a * 2**i);
Seems like cookies are disabled on this browser, please enable them to open this website
Marc's Cakewalk
You are viewing a single comment's thread. Return to all comments →
Javascript one-line: