Pinterest Interview Prep

Pinterest weights coding heavily: most reported onsites run three coding rounds alongside one design round, one behavioural round, and a deep dive in your own area. The questions sit at honest LeetCode medium. Pinterest is not trying to catch you out with an obscure algorithm, it is checking whether you write correct, readable code quickly and explain it while you do.

The design round is where the company shows its shape. Prompts land on home feed ranking, visual search, and serving billions of images cheaply. If you can talk about a candidate generation and ranking split, and about what it costs to serve an image at several resolutions, you are prepared for most of what they ask.


Interview Process

Stage Duration Focus
Recruiter Screen 30 min Background, level, team interest
Technical Screen 45-60 min 1-2 DSA problems, medium
Onsite: Coding 1 45 min DSA, medium
Onsite: Coding 2 45 min DSA, medium
Onsite: Coding 3 45 min DSA, medium to hard
Onsite: System Design 60 min Feed, ranking, or serving at scale
Onsite: Domain Deep Dive 45-60 min Your area: backend, frontend, infra, ML
Onsite: Behavioural 45 min Values, collaboration, past projects

Three coding rounds is the usual shape, so coding is the dominant signal by volume. Senior loops trade one coding round for a second design or architecture conversation. The deep dive is matched to your stated specialism, which means you cannot prepare it generically — it is a conversation about the thing you claim to be good at.


What Pinterest Actually Tests

Derived from 45 reported Pinterest-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 1 2%
Medium 28 62%
Hard 16 36%

Over a quarter of the list is Hard, so treat Hard problems as the baseline rather than a stretch goal.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Dynamic Programming 7 16%
2 Arrays & Hashing 7 16%
3 Heap / Priority Queue 6 13%
4 Graphs 4 9%
5 Backtracking 3 7%
6 Binary Search 3 7%
7 Strings 3 7%
8 Design (Coding) 3 7%
9 Intervals, Greedy & Sorting 3 7%
10 Tries & String Search 2 4%

Pinterest Signature Problems

These rank high on Pinterest’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Reconstruct Itinerary Semi-Eulerian Graph + Eulerian Circuit Hard 21 of 142 Solve →
2 Optimal Account Balancing Bitmask + Backtracking Hard 12 of 142 Solve →
3 Bus Routes BFS Hard 14 of 142 LeetCode →
4 Expression Add Operators Backtracking Hard 7 of 142 LeetCode →
5 Shortest Way to Form String Binary Search + Greedy Medium 3 of 142 LeetCode →
6 Shortest Path in a Grid with Obstacles Elimination BFS Hard 13 of 142 Solve →
7 Count Subarrays With Score Less Than K Sliding Window + Prefix Sum Hard 5 of 142 LeetCode →
8 Count and Say String Medium 10 of 142 Solve →
9 Longest Word in Dictionary Trie Medium 3 of 142 LeetCode →
10 Target Sum 0-1 Knapsack + Knapsack Problem Medium 9 of 142 Solve →
11 Delete Nodes And Return Forest Binary Tree + DFS Medium 4 of 142 LeetCode →
12 Put Boxes Into the Warehouse II Greedy Medium 2 of 142 LeetCode →
13 Put Boxes Into the Warehouse I Greedy Medium 3 of 142 LeetCode →
14 Find Minimum Time to Finish All Jobs Bitmask + Backtracking Hard 5 of 142 LeetCode →

If you are short on time, these carry more Pinterest-specific signal per hour than the universal top-100 lists.


Reported in the Last Six Months

The recency-filtered slice of Pinterest’s list, ranked by how often each was reported. Expect heavy overlap with the all-time classics — that overlap is the point, it means these stay in rotation.

# Problem Pattern Difficulty Link
1 Reconstruct Itinerary Semi-Eulerian Graph + Eulerian Circuit Hard Solve →
2 Optimal Account Balancing Bitmask + Backtracking Hard Solve →
3 Expression Add Operators Backtracking Hard LeetCode →
4 Shortest Way to Form String Binary Search + Greedy Medium LeetCode →
5 Bus Routes BFS Hard LeetCode →
6 Split Array Largest Sum Prefix Sum + Binary Search Hard Solve →
7 Design Search Autocomplete System Data Stream + Trie Hard LeetCode →
8 Coin Change Complete Knapsack + Knapsack Problem Medium Solve →
9 Delete Nodes And Return Forest Binary Tree + DFS Medium LeetCode →
10 Design A Leaderboard Design Medium Solve →
11 Multiply Strings Simulation + Math Medium Solve →
12 Add Two Numbers II Linked List + Stack Medium LeetCode →
13 Put Boxes Into the Warehouse I Greedy Medium LeetCode →
14 Rotting Oranges BFS Medium Solve →

System Design (HLD) Problems Asked at Pinterest

# Problem Difficulty Link
1 Twitter Feed (Home Feed Ranking) Intermediate Read →
2 Instagram (Image Sharing and Serving) Advanced Read →
3 Image Processing Pipeline Intermediate Read →
4 Search Autocomplete Intermediate Read →
5 Trending Topics Intermediate Read →
6 Web Crawler Intermediate Read →
7 Notification System Intermediate Read →
8 Distributed Cache Intermediate Read →
9 Ad Click Aggregation Advanced Read →
10 Metrics and Monitoring System Intermediate Read →

DSA Problems Asked at Pinterest

43 problems across 11 pattern groups. Each group is allocated in proportion to its real share of Pinterest’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. All 7 on the list.

# Problem Pattern Difficulty Link
1 Optimal Account Balancing Bitmask + Backtracking Hard Solve →
2 Coin Change Complete Knapsack + Knapsack Problem Medium Solve →
3 Is Subsequence Two Pointers + DP Easy Solve →
4 Maximum Profit in Job Scheduling Binary Search + DP Hard Solve →
5 Split Array Largest Sum Prefix Sum + Binary Search Hard Solve →
6 Target Sum 0-1 Knapsack + Knapsack Problem Medium Solve →
7 Find Minimum Time to Finish All Jobs Bitmask + Backtracking Hard LeetCode →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 7 on the list.

# Problem Pattern Difficulty Link
8 Bus Routes BFS Hard LeetCode →
9 Shortest Path in a Grid with Obstacles Elimination BFS Hard Solve →
10 Find Median Given Frequency of Numbers Database Hard LeetCode →
11 Sparse Matrix Multiplication Linear Algebra Medium LeetCode →
12 Corporate Flight Bookings Prefix Sum Medium LeetCode →
13 Rotting Oranges BFS Medium Solve →
14 The Maze BFS + DFS Medium LeetCode →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 6 on the list.

# Problem Pattern Difficulty Link
15 Meeting Rooms III Heap Hard LeetCode →
16 Reorganize String Heap + Greedy Medium Solve →
17 Employee Free Time Sweep Line + Heap Hard LeetCode →
18 Meeting Rooms II Prefix Sum + Heap Medium Solve →
19 Merge k Sorted Lists Tournament Sort + Merge Sort Hard Solve →
20 Top K Frequent Elements Quickselect + Bucket Sort Medium Solve →

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 4 on the list.

# Problem Pattern Difficulty Link
21 Reconstruct Itinerary Semi-Eulerian Graph + Eulerian Circuit Hard Solve →
22 Accounts Merge Union-Find + BFS Medium LeetCode →
23 Number of Islands Union-Find + BFS Medium Solve →
24 Number of Provinces Union-Find + Graph Medium Solve →

Backtracking

Enumerate with pruning. Interviewers look for a clean choose, explore, unchoose loop and a real complexity bound. All 3 on the list.

# Problem Pattern Difficulty Link
25 Expression Add Operators Backtracking Hard LeetCode →
26 Combination Sum Backtracking Medium Solve →
27 Letter Combinations of a Phone Number Backtracking Medium Solve →

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 3 on the list.

# Problem Pattern Difficulty Link
28 Find Median from Data Stream Data Stream + Design Hard Solve →
29 Design A Leaderboard Design Medium Solve →
30 Dot Product of Two Sparse Vectors Linear Algebra + Design Medium Solve →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 3 on the list.

# Problem Pattern Difficulty Link
31 Shortest Way to Form String Binary Search + Greedy Medium LeetCode →
32 Count Subarrays With Score Less Than K Sliding Window + Prefix Sum Hard LeetCode →
33 Find First and Last Position of Element in Sorted Array Binary Search Medium Solve →

Intervals, Greedy & Sorting

Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. All 3 on the list.

# Problem Pattern Difficulty Link
34 Put Boxes Into the Warehouse I Greedy Medium LeetCode →
35 Put Boxes Into the Warehouse II Greedy Medium LeetCode →
36 Merge Intervals Quicksort Medium Solve →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 3 on the list.

# Problem Pattern Difficulty Link
37 Count and Say String Medium Solve →
38 Multiply Strings Simulation + Math Medium Solve →
39 Text Justification Simulation + String Hard Solve →

Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. All 2 on the list.

# Problem Pattern Difficulty Link
40 Design Search Autocomplete System Data Stream + Trie Hard LeetCode →
41 Longest Word in Dictionary Trie Medium LeetCode →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 2 on the list.

# Problem Pattern Difficulty Link
42 Candy Crush Two Pointers Medium Solve →
43 String Compression Two Pointers Medium Solve →

Pinterest’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Dynamic Programming Very High 7 (16%) Optimal Account Balancing, Coin Change, Is Subsequence
2 Arrays & Hashing High 7 (16%) Bus Routes, Shortest Path in a Grid with Obstacles Elimination, Find Median Given Frequency of Numbers
3 Heap / Priority Queue High 6 (13%) Meeting Rooms III, Reorganize String, Employee Free Time
4 Graphs Medium-High 4 (9%) Reconstruct Itinerary, Accounts Merge, Number of Islands
5 Backtracking Medium-High 3 (7%) Expression Add Operators, Combination Sum, Letter Combinations of a Phone Number
6 Design (Coding) Medium-High 3 (7%) Find Median from Data Stream, Design A Leaderboard, Dot Product of Two Sparse Vectors
7 Binary Search Medium 3 (7%) Shortest Way to Form String, Count Subarrays With Score Less Than K, Find First and Last Position of Element in Sorted Array
8 Intervals, Greedy & Sorting Medium 3 (7%) Put Boxes Into the Warehouse I, Put Boxes Into the Warehouse II, Merge Intervals
9 Strings Medium 3 (7%) Count and Say, Multiply Strings, Text Justification
10 Tries & String Search Medium 2 (4%) Design Search Autocomplete System, Longest Word in Dictionary

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Dynamic Programming, Arrays & Hashing, Heap / Priority Queue covers the bulk of what Pinterest actually asks. The rest is insurance for the one round that goes somewhere unexpected.


The Domain Deep Dive

One onsite round is matched to the area you say you work in. It is a conversation rather than a problem, and it goes two or three layers deeper than the design round. What that looks like by track:

Track What the round digs into
Backend Service boundaries, data modelling, failure handling, idempotency, migration strategy for a schema you changed
Frontend / Web Rendering performance, bundle size, image loading and layout stability, state management, accessibility
Infrastructure Capacity planning, deployment safety, observability, incident you owned, cost of the thing you built
Data / ML Feature pipelines, training and serving skew, offline versus online metrics, how you validated a model change

Pick the track you can defend under follow-up questions. The common failure is claiming breadth across three tracks and then being unable to answer the second question in any of them.


Behavioural Round (Pinterest Values)

# Question
1 Tell me about a time you changed a decision because of user feedback. (Put Pinners First)
2 Tell me about a project where you raised the quality bar beyond what was asked.
3 Tell me about a time you disagreed with a product manager and how it resolved.
4 Tell me about a time a launch did not work and what you learned from it.
5 Tell me about a time you made someone on your team more effective.
6 How do you decide what to cut when a deadline moves in?
7 Tell me about a piece of work you are proud of that nobody noticed.
8 Why Pinterest, and which surface of the product interests you?

Pinterest’s stated values lead with Put Pinners First, and interviewers look for evidence you actually changed something because of a user, not just that you can say the phrase. Pair each story with the metric you moved and the trade-off you accepted to move it.


14-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Dynamic Programming (part 1) Optimal Account Balancing, Coin Change, Is Subsequence
2 Dynamic Programming (part 2) Maximum Profit in Job Scheduling, Split Array Largest Sum, Target Sum
3 Arrays & Hashing (part 1) Bus Routes, Shortest Path in a Grid with Obstacles Elimination, Find Median Given Frequency of Numbers
4 Arrays & Hashing (part 2) Sparse Matrix Multiplication, Corporate Flight Bookings, Rotting Oranges
5 Heap / Priority Queue (part 1) Meeting Rooms III, Reorganize String, Employee Free Time
6 Heap / Priority Queue (part 2) Meeting Rooms II, Merge k Sorted Lists, Top K Frequent Elements
7 Graphs Reconstruct Itinerary, Accounts Merge, Number of Islands
8 Backtracking Expression Add Operators, Combination Sum, Letter Combinations of a Phone Number
9 Design (Coding) Find Median from Data Stream, Design A Leaderboard, Dot Product of Two Sparse Vectors
10 Binary Search Shortest Way to Form String, Count Subarrays With Score Less Than K, Find First and Last Position of Element in Sorted Array
11 Intervals, Greedy & Sorting Put Boxes Into the Warehouse I, Put Boxes Into the Warehouse II, Merge Intervals
12 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
13 Revision Redo the problems you failed or needed a hint on.
14 Light review + rest Re-read your pattern notes. Sleep early.

Tips for Pinterest Interviews

  1. Prepare for volume, not exotica. Three coding rounds at medium difficulty rewards consistency. Solve each problem cleanly in twenty-five minutes rather than chasing clever one-liners.
  2. Separate candidate generation from ranking. Every feed design question at Pinterest resolves into retrieve a few thousand candidates cheaply, then score them expensively. Saying that out loud early frames the rest of your answer.
  3. Cost out image serving. Several resolutions per image, CDN egress, and cache hit ratio drive the architecture. A design answer that treats images as opaque blobs skips the interesting half.
  4. Own your deep-dive area honestly. The domain round goes several layers into whatever you listed on your CV. Name the specialism you can actually defend rather than the one that sounds most impressive.
  5. Be ready to talk about freshness. Precomputed feeds go stale and real-time ranking is expensive. State which reads are allowed to be seconds behind and which are not.
  6. Expect a project review. Some loops fold a past-project walkthrough into the behavioural or deep-dive round. Have one project you can diagram from request to storage.
  7. Mention experimentation. A/B testing, guardrail metrics, and what you would do if engagement rose while a quality metric fell. That trade-off is daily work on a discovery product.

Other Company Prep