Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sjdev2212/mob-30-3
https://github.com/sjdev2212/mob-30-3
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sjdev2212/mob-30-3
- Owner: sjdev2212
- Created: 2022-03-30T13:58:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-30T14:00:33.000Z (over 2 years ago)
- Last Synced: 2024-11-09T04:33:06.110Z (about 2 months ago)
- Language: Ruby
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mob-30-3
HackerLand Enterprise is adopting a new viral advertising strategy. When they launch a new product, they advertise it to exactly
people on social media.
On the first day, half of those
people (i.e., ) like the advertisement and each shares it with of their friends. At the beginning of the second day,people receive the advertisement.
Each day,
of the recipients like the advertisement and will share it with 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.
Example
.
Day Shared Liked Cumulative
1 5 2 2
2 6 3 5
3 9 4 9
4 12 6 15
5 18 9 24