Disney·Software Engineer·Technical Phone Screen
- You have a catalog of ads, each with attributes like target locations and age range. Given a targeting rule that has optional fields (target locations, min age, max age) and an AND/OR operator, return the IDs of ads that match. You need to decide how missing rule fields are handled and how the operator composes the per-field checks. Then discuss what data structures you'd use if this rule gets applied repeatedly against a static ad set.
“The missing-field part is where I fumbled first.”