Pinterest·Machine Learning Engineer·Technical Phone Screen
Apr 2026
Pinterest MLE coding screen focused entirely on string manipulation for numeric rounding, and the twist was you couldn't use any built-in float parsing at all. Two problems, both variations on the same theme but the second one added a precision parameter that made things messier than expected.
- Implement a rounding function from scratch that takes a decimal number as a string and returns the rounded integer as a string, without parsing it into a float.
- Extend the rounding function to round a numeric string to the nearest multiple of a given precision, where both the number and the precision are provided as strings.
“The no-float constraint is the whole point of the problem and it took me a minute to internalize why.” The rest of the author's notes on Machine Learning Engineer interview at Pinterest, Technical Phone Screen round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post