Pinterest software engineer interview questions and preparation

Pinterest software engineer interview questions pair standard algorithm rounds with problems from a visual discovery product: laying out a grid of images, ranking and blending a home feed, finding similar images and storing billions of pins and boards. Candidates commonly describe a technical screen and then a loop of coding, system design for experienced hires and a behavioral round on collaboration and values, with machine learning depth added on ranking teams, so check your posting for the team's focus.

By Published 5 min read

The usual shape of a Pinterest loop

Exact rounds depend on level and on whether the team is product, infrastructure, ads, or machine learning. Here is what candidates tend to report, which you should confirm with the recruiter for your own role:

  1. Recruiter callYour experience, the teams that interest you and timing.
  2. Technical phone screenOne or two coding problems in a shared editor, with time for your questions at the end.
  3. Virtual onsiteTypically two or more coding rounds, a system design round for experienced candidates and a behavioral or values round. Ranking and ML teams may add a machine learning design conversation.
  4. Team matchingSome candidates describe talking with teams after the loop before a final placement.

Pinterest lists its company values on its careers pages. Read them, then build stories that show the behavior rather than repeating the phrases.

Coding questions, some with a Pinterest setting

Coding prompts and what interviewers look for
QuestionSkill testedWhat a strong answer shows
Lay out pins of different heights in a fixed number of columns, always adding to the shortest one.Heaps.A min-heap of column heights, ties broken left to right and O(n log k) time.
Given which boards each pin is saved to, find the pins most often saved alongside a given pin.Counting and top-k.Co-occurrence counts over shared boards, a heap for the top results and a cap on very large boards.
Find near-duplicate images given a 64-bit fingerprint per image and a maximum bit difference.Bit manipulation.XOR plus a bit count per pair, then a smarter index (split the fingerprint into blocks) to avoid comparing every pair.
Merge several ranked candidate lists into one feed without duplicates and with no more than two items in a row from the same source.Merging with constraints.A heap by score, a seen set and a holding queue for items that would break the diversity rule.
Return the top search suggestions for a typed prefix.Tries.A trie with the best few completions stored at each node, so lookups do not walk the subtree.
Suggest boards to follow from the boards your followed accounts follow.Graph traversal.Two-hop counts, excluding what you already follow, and a limit on heavy accounts.
Flag accounts that post the same link more than a set number of times in an hour.Sliding windows.Per-account, per-link deques of timestamps and memory cleanup for idle keys.
Compute trending search terms from a stream with the past hour weighted most.Time decay.Exponentially decayed counts updated lazily, compared against a baseline so steady favorites do not always win.
Coding prompts and what interviewers look for. Scroll sideways on a small screen.
import heapq

def masonry(heights, columns):
    """Place each pin, in order, at the top of the currently shortest column.
    Returns (column, y) per pin. Ties go to the leftmost column."""
    tops = [(0, c) for c in range(columns)]  # (current height, column index)
    placed = []
    for h in heights:
        y, c = heapq.heappop(tops)
        placed.append((c, y))
        heapq.heappush(tops, (y + h, c))
    return placed
Masonry layout: each pin goes to the shortest column. Run with python3 and compared with a slow reference on random inputs.

Likely follow-ups: images arrive with width and height, so scale each to the column width first; the window resizes, so explain whether you recompute everything or only pins below the fold; and infinite scroll appends new pins, which this design handles by keeping the heap between pages.

System design prompts

Feeds are the classic Pinterest prompt. Break the feed into stages: gather candidates from several sources, score them, blend in ads or fresh content, then serve and log what was shown. Keep the caching and sharding guides nearby, since both come up quickly at this scale.

Design questions at Pinterest scale
QuestionSkill testedWhat a strong answer shows
Design the home feed.Multi-stage ranking.Candidate generation from follows, interests and similar pins, a light first-pass ranker, a heavier final ranker and logging for training.
Design storage for pins, boards and who saved what.Sharding.IDs that encode their shard, data for one user kept together and a plan for re-sharding hot partitions.
Design image upload and delivery in many sizes.Media pipelines.Original stored once, resized variants made by background workers or on first request, and a CDN in front.
Design visual search: a user crops part of a photo and sees similar pins.Embeddings and nearest-neighbor search.An image model producing vectors, an approximate nearest-neighbor index and filters for safety and freshness.
Design search autocomplete for a global audience.Low-latency lookups.Precomputed suggestions by prefix and language, refreshed from logs, with the autocomplete design as a reference.
Design a weekly email of recommended pins.Batch plus personalization.Candidates computed offline, ranking per user, frequency caps and unsubscribe honored everywhere.
Design an experimentation platform for feed changes.Measurement.Stable user bucketing, metric pipelines, guardrail metrics and a warning when groups are unbalanced.
Design ad pacing so a campaign's daily budget lasts the whole day.Control loops.Spend tracked against a target curve and bid participation throttled up or down.
Design questions at Pinterest scale. Scroll sideways on a small screen.

Questions for ranking and ML-adjacent teams

  • How would you measure whether a feed change made it better? Pick a primary metric such as saves or long clicks, add guardrails like hides and reports, and run an experiment long enough to see repeat behavior.
  • What is the cold-start problem for a new user, and how do you handle it? Few signals, so ask for interests at sign-up, lean on popular content per region and learn quickly from early actions.
  • Why split ranking into a cheap stage and an expensive stage? Scoring every candidate with a large model is too slow; the cheap stage narrows thousands to hundreds.
  • How do you keep recommendations from repeating the same ideas? Diversity rules in blending, penalties for near-duplicates and some exploration.
  • Where can training data mislead a ranking model? Users only act on what they were shown, so the model learns from its own past choices. Log positions and add some randomized exposure.

Behavioral and values questions

Behavioral prompts and what they reward
QuestionSkill testedWhat a strong answer shows
Why Pinterest, and how do you use it?Motivation.Real use or a clear reason the product matters to you, plus one thing you would improve.
Tell me about a project where you put the user's wellbeing ahead of a short-term metric.User care.The tension, how you argued it and the result.
Describe working across several teams to ship one feature.Collaboration.How you aligned goals, handled dependencies and shared credit.
Tell me about a time you made a teammate feel included or heard.Inclusion.A specific action and what changed for that person or the team.
Tell me about a failed experiment and what you learned.Learning from data.The hypothesis, the result and the next decision it shaped.
Describe a time you raised the quality bar on your team.Craft.A concrete standard, such as testing or code review, and how others adopted it.
Behavioral prompts and what they reward. Scroll sideways on a small screen.

Fictional example

Scoping the home feed question
Interviewer
Design the Pinterest home feed.
Candidate
Let me scope it. I will cover the logged-in home feed on mobile, organic pins only, and leave ads blending for the end. Is a fresh feed on each app open the goal?
Interviewer
Yes, and it should load quickly.
Candidate
Then I would precompute a pool of candidates per user in the background from follows, past saves and similar pins, so app open only has to rank a few hundred items and fetch their images through the CDN.
Candidate
I will log every impression with its position. Without that, the next model cannot tell an unliked pin from one the user never saw.

Preparation checklist

  • Classics, timed. Heaps, tries, graphs, sliding windows and intervals until medium problems take under thirty minutes with tests.
  • One feed, drawn three times. Practice the home feed design until candidate generation, ranking, blending and logging come out in order without notes.
  • Read the engineering blog. Pinterest has written publicly about sharding, feeds and visual search; skim a few posts so your design vocabulary matches the problems they actually face.
  • Six stories. User care, cross-team work, inclusion, a failed experiment, raising quality and a hard bug.

Other guides in this set: the DoorDash software engineer guide for marketplace problems, the Snowflake software engineer guide for data platform internals, and the software engineer question bank for fundamentals.

If you rehearse the feed design with a friend over a call, Natively can transcribe the session on your computer, and the transcript shows whether you scoped before drawing. During coding practice, a screenshot of the problem lets Natively read it and propose a solution path you can compare with yours after your own attempt. Upload your résumé and the posting (Pro or the free trial) and suggested answers to behavioral practice questions use your real experience. Details on practicing with Natively.

Questions people ask

What coding questions does Pinterest ask?

Mostly classic data structure problems, sometimes set in the product: a masonry grid of pins, co-saved pins, near-duplicate image fingerprints, feed merging with diversity rules and prefix suggestions.

What is the Pinterest software engineer interview process?

Candidates commonly describe a recruiter call, a technical phone screen and a virtual onsite with coding, system design for experienced hires and a behavioral round, plus ML design for ranking teams.

What system design questions does Pinterest ask?

The home feed is the classic one. Others include pin and board storage with sharding, image upload and resizing, visual search, autocomplete, email digests and experimentation.

How do I prepare for a Pinterest interview?

Time yourself on heaps, tries, graphs and windows, rehearse the home feed design until it flows, skim the engineering blog and prepare stories on user care and collaboration.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP