Zoox·Machine Learning Engineer·Technical Phone Screen
- Given a list of roller coaster descriptions with type, max speed, bumps per second, and lift type, compute an overall score for each coaster using type-specific rules for scale factor and comfort score. Return the scores rounded to one decimal place.
- Redesign your solution so that adding new coaster types or changing scoring rules doesn't require touching the core processing logic. How would you apply the open/closed principle here?
“The formula itself wasn't bad once I mapped out the three types separately.”