Pinterest Machine Learning Engineer interview questions

73 Machine Learning Engineers have shared notes from their Pinterest interviews, with the questions they were asked in each round. That is 59% of the 123 Pinterest interview notes on Screna AI.

73 Machine Learning Engineer interview notes

Pinterest·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Pinterest ML engineer interview with a graph/backtracking problem that's basically LeetCode 465 dressed up as a trip expense story. Not the hardest problem on paper but the optimal solution requires some real thought about how to minimize transaction count.
  • A group of people went on a trip and paid different amounts toward shared expenses. Given each person's net balance, find the minimum number of transactions needed to settle all debts within the group.

“I recognized it as a balance-settling problem pretty fast, computed net balances and dropped the zeros, but then fumbled on articulating why greedy doesn't work here.”

View Post

Pinterest·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Pinterest MLE interview that was basically one meaty coding design problem about access control with a hierarchy. The follow-up complexity requirements were where things got interesting and a little stressful.
  • Design an access-control class for advertisers and a group hierarchy (e.g., world -> country -> city), where children inherit access from parent groups. Implement grant_access, revoke_access, and check_access methods, then optimize for O(1) grants and revokes with O(depth) check traversal using a tree-backed structure.

“Started with a flat dict mapping advertiser IDs to sets of groups, which felt fine until they asked about inheritance.”

View Post

Pinterest·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Pinterest ML engineer interview had at least one multiple-choice question on confusion matrices. Pretty straightforward topic on paper but the question was designed to catch people who autopilot through the axis conventions.
  • Given a confusion matrix, compute precision, recall, F1, accuracy, and specificity. Also interpret which cells represent TP, FP, FN, and TN given the axis layout shown.

“The multiple-choice format made me overconfident and I nearly picked the wrong answer because I assumed the predicted axis was on the rows without actually checking.”

View Post

Pinterest·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Pinterest ML Engineer coding round, two problems back to back. One was a classic hard-ish stack problem and the other was basically a warmup. Mixed bag.
  • Given an array of bar heights representing a histogram, find the area of the largest rectangle that can be formed within it.
  • Given two strings, determine whether the first string is a subsequence of the second.

“This is the one I was nervous about.”

View Post

Pinterest·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Interviewed for an ML Engineer role at Pinterest and got hit with a classic overfitting question that sounds easy until you're actually in the seat trying to explain it clearly.
  • Why might a model have high training accuracy but low test accuracy, and how would you address it?

“Knew the word overfitting immediately but then kind of fumbled explaining the actual mechanics.”

View Post

Pinterest·Machine Learning Engineer·Onsite - System Design / Architecture

Jun 2026
Pinterest ML Engineer interview, system design round focused entirely on fraud detection. Pretty deep dive, they wanted the full stack from problem framing through to feedback loops, not just a model architecture sketch.
  • Design a real-time fraud detection system for banking transactions, end to end.
  • How would you handle class imbalance in a fraud detection model, and what trade-offs does that create between precision and recall?
  • What features would you engineer for a fraud detection model, specifically around velocity, graph relationships, and device signals?
  • How do you ensure consistency between your offline training features and the features served at inference time?
  • How would you set up the feedback loop from analyst fraud reviews back into model retraining?
  • How would you monitor for model drift in a fraud detection system, given that fraudsters actively adapt their behavior?

“This is a big open-ended one and I spent probably too long on the problem framing before getting to anything concrete.”

View Post

Pinterest·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Pinterest ML Engineer interview that was basically one meaty coding question: build Naive Bayes from scratch. No tricks, just whether you actually understand the math and can write clean NumPy.
  • Implement a Naive Bayes classifier from scratch using NumPy. Your implementation should include a fit method that computes class priors and per-class feature likelihoods, a predict method that uses log-space computation, and proper handling of numerical stability. Be prepared to discuss the conditional independence assumption and when it breaks down.

“The fit/predict split was fine, I've done it before.”

View Post

Pinterest·Machine Learning Engineer·Onsite - Behavioral / Leadership

Jun 2026
Pinterest MLE behavioral round covering leadership and technical themes. Two categories of questions, each with follow-ups if you name-drop a concept without backing it up. Felt more rigorous than a typical behavioral screen because of how quickly they'd poke at anything you claimed.
  • Tell me about a time you led a project or initiative from start to finish.
  • Describe a situation where you influenced a team or decision without having direct authority over the people involved.
  • Can you walk me through a time you mentored someone or made a meaningful improvement to how your team operated?
  • What's the most technically challenging problem you've worked on, and how did you approach solving it?
  • Tell me about a meaningful trade-off you made in a system or model design, such as balancing consistency against availability, or latency against cost.
  • Walk me through a particularly difficult production issue you had to debug. What made it hard and how did you find the root cause?

“I structured my answer as situation-action-result and it went fine until they asked me to get specific about how I handled scope creep.”

View Post

Pinterest·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Pinterest MLE interview with a sliding window problem that had a twist I didn't see coming. The algorithmic angle was trickier than it looked on the surface.
  • Given an array and an odd-sized sliding window, determine for each window position whether the values are 'bitonic' around the center element, meaning strictly decreasing from the center to both ends. Return either a boolean per window or the list of valid starting indices. What's the time complexity, and can you get it down to O(n)?

“I went straight for the brute force first, checking each window in O(k) time, which gets you O(nk) total.”

View Post

Pinterest·Machine Learning Engineer·Onsite - System Design / Architecture

Jun 2026
Pinterest ML infra interview, system design round focused entirely on GPU memory budgeting for model serving. Pretty deep dive, more math-heavy than I expected for a design question.
  • You have a GPU with 60 GB of memory. Walk through how you'd figure out the optimal batch size for serving a model, covering parameter memory, activation memory, KV cache for transformer models, framework overhead, and the latency vs throughput trade-off. How do you validate your choice empirically?

“This question is deceptively wide.”

View Post