← SIG (Susquehanna) Interview Insights
Model the start times as independent uniform random variables on [0,30] and compute the probability of overlap by integrating over the joint distribution. Alternatively, use geometric reasoning: the non-overlap condition is that one flower finishes before the other starts, which defines a region in the 2D start-time plane. Compute the area of the overlap region and divide by the total area (900).
Pro tip: Draw a diagram of the 30x30 square with axes representing start times. Shade the non-overlap regions (where red ends before purple starts or purple ends before red starts) and compute their combined area. This visual method is faster and less error-prone than integration, and it clearly communicates your reasoning to the interviewer.
Let X be the start time of the purple flower and Y be the start time of the red flower, both uniformly distributed on [0,30]. The sample space is the square [0,30] x [0,30] with area 900.
The flowers overlap if their bloom intervals intersect. The purple flower blooms from X to X+9, and the red from Y to Y+12. Overlap occurs if X <= Y+12 and Y <= X+9. The complement (no overlap) occurs if X+9 < Y or Y+12 < X.
In the (X,Y) plane, the non-overlap region consists of two right triangles: one where Y > X+9 (red starts after purple ends) and one where X > Y+12 (purple starts after red ends). Calculate the area of each triangle using the formula 0.5 * base * height.
Sum the areas of the two triangles to get the total non-overlap area, then subtract from 900 to get the overlap area. Divide the overlap area by 900 to obtain the probability.
Simplify the fraction and check that the probability is between 0 and 1. Present the final answer clearly, explaining each step.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.