Zillow·Machine Learning Engineer·Technical Phone Screen
- Implement a function that replaces placeholders in a string with values from a dictionary. Placeholders are delimited by percent signs, e.g. %key%, and if a key is missing from the dictionary the function should report an error. Aim for linear time complexity.
“Seemed straightforward at first and I jumped into code before thinking through the error case, which bit me.”