You are viewing a single comment's thread. Return to all comments →
Javascript js solve recursivly for fun:
function viralAdvertising(n, shared) { if (n === 0) { return 0; } shared = shared || 5; // start @ 5 shares let liked = Math.floor(shared / 2); return liked + viralAdvertising(n - 1, liked * 3); }
Seems like cookies are disabled on this browser, please enable them to open this website
Viral Advertising
You are viewing a single comment's thread. Return to all comments →
Javascript js solve recursivly for fun: