#viral #socialmedia #hackerrank #problem #solution #ad #viralad #viraladvertising
Viral advertising Solve Viral advertising Problem on Hacker Rank Using C#
HackerLand Enterprise is adopting a new viral advertising strategy. When they launch a new product, they advertise it to exactly 5 people on social media.
On the first day, half of those 5 people (i.e., floor(5/2)=2) like the advertisement and each shares it with 3 of their friends. At the beginning of the second day Floor(5/2)=2*3=6, people receive the advertisement.
Each day floor(recipient/2), of the recipients like the advertisement and will share it with 3 friends on the following day. Assuming nobody receives the advertisement twice, determine how many people have liked the ad by the end of a given day, beginning with launch day as day 1 .
Other most watched Hacker Rank solution video link
Sales by Match- • Solve Sales By Match Problem on Hacker Ran...
Repeated String- • Solve Repeated String Problem on Hacker Ra...
Making Anagram- • Making Anagram Hacker Rank Solution using C#
Camel Case- • Camel Case Hacker Rank problem using C#
Apple and Orange- • Solve Apple and Orange Problem on Hacker R...
If you want to solve this type of problem next time own their own then please watch this video till the end, you may solve this problem just copying the code but copying code is not perfect solution.
After watching this video if you still facing any challenges or issue please feel free to write to us on [email protected] or in comment section
We love to hear your query and we will back to you as soon as possible.
Happy Learning
Codes Evidence