Find probability of overlapping blooms
SIG (Susquehanna)Data Scientist · Online AssessmentLast updated
This question evaluates understanding of probability theory, specifically reasoning about continuous uniform distributions, geometric probability, and the likelihood of overlap between random time intervals within a fixed horizon.
Two flowers bloom independently. The purple flower’s blossom time is uniformly random over the next 30 days and lasts exactly 9 days. The red flower’s blossom time is uniformly random over the next 30 days and lasts exactly 12 days. What is the probability that the two flowers overlap in bloom at some point?
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.