We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
intcountLikesOnDay(intday,intreceived){if(day==0)return0;return(received/2)+countLikesOnDay(--day,(received/2)*3);}// ...// somewhere in main()countLikesOnDay(day,5);
Viral Advertising
You are viewing a single comment's thread. Return to all comments →
Here's the most elegant solution, I suppose