call(back)

Pinterest

Product-minded loops with practical coding rounds — string and array manipulation with fiddly edge cases shows up often, and design rounds stay grounded in surfaces like feeds and boards.

Typical loop

  1. 1Recruiter screen
  2. 2Technical phone screen: one coding problem
  3. 3Onsite: two coding rounds
  4. 4System design round
  5. 5Behavioral / cross-functional round

Questions

Callback's practice questions and the LeetCode questions Pinterest has been asking, filtered together.

Practice questions

Max Width

Algorithms & Data Structures · Greedy line packing and fiddly space math — full text justification.

hardSign in to star problems

Design a Rate Limiter

System Design · Token bucket, sliding window, and where the counters live.

mediumSign in to star problems

Round Numeric Strings I

Algorithms & Data Structures · Arbitrary-precision rounding — floats need not apply.

mediumSign in to star problems

Violation Log Analyzer

Algorithms & Data Structures · Streaming design: recent counts, top-k, and sliding-window bans.

mediumSign in to star problems

Nested Set Equality

Algorithms & Data Structures · Order and duplicates vanish at every depth — canonicalize.

mediumSign in to star problems

Assign Pins to Shortest Columns

Algorithms & Data Structures · The masonry-layout greedy: shortest column wins, leftmost on ties.

mediumSign in to star problems

Collect Pins from Reachable Boards

Algorithms & Data Structures · BFS over the bipartite pin-board graph without building board-to-board edges.

hardSign in to star problems

Chunked Stream Reader I

Algorithms & Data Structures · Reassemble lines from arbitrary chunks, reading lazily.

hardSign in to star problems

Escape-Room Leaderboard

Algorithms & Data Structures · Advance players in O(1), rank them without sorting — a linked list per room.

mediumSign in to star problems

Experiment Buckets I

Algorithms & Data Structures · Meet new group sizes while disrupting as few buckets as possible.

mediumSign in to star problems

Experiment Buckets II

Algorithms & Data Structures · Interval sweep for the free ranges — independent of bucket-space size.

mediumSign in to star problems

ID Allocator I

Algorithms & Data Structures · Smallest-free allocation under a capacity that moves at runtime.

mediumSign in to star problems

Cross-Reference Logs to Flag Spam Numbers

Algorithms & Data Structures · A hash join across two logs — and saying that word out loud.

mediumSign in to star problems

Sparse Matrix Storage, Addition, and Multiplication

Algorithms & Data Structures · Storage proportional to nonzeros — and the cancellation trap.

mediumSign in to star problems

Select the Nearest Eligible Elevator

Algorithms & Data Structures · A requirements-gathering problem wearing a simulation costume.

easySign in to star problems

Decide Target via Subsequence Plus/Multiply Expression

Algorithms & Data Structures · Expression search with precedence — the (total, pending product) trick.

hardSign in to star problems

Compute Reachable Cells for a Cleaning Robot

Algorithms & Data Structures · Slide-until-blocked physics: rest positions are the states, not cells.

mediumSign in to star problems

Maximize Boxes Stored Through One Entrance

Algorithms & Data Structures · Prefix-min ceilings plus an exchange-argument greedy.

mediumSign in to star problems

Mark and Compact a Heap-Indexed Subtree

Algorithms & Data Structures · Garbage collection in miniature: mark a subtree, compact, remap.

mediumSign in to star problems

Build Tabs

Frontend · One active index drives the whole component.

easySign in to star problems

ID Allocator II

Algorithms & Data Structures · Pack named ID ranges, then resize with all-or-nothing shifts.

mediumSign in to star problems

Settle Debts I

Algorithms & Data Structures · Net the balances, then match debtors to creditors greedily.

mediumSign in to star problems

Reconstruct Itinerary I

Algorithms & Data Structures · Use every ticket once: Hierholzer's walk, smallest destination first.

hardSign in to star problems

Access-Log Query System

Algorithms & Data Structures · Two sorted indexes and a binary search you write by hand.

mediumSign in to star problems

Bus Routes: Minimum Transfers

Algorithms & Data Structures · BFS over routes, not stops — clear each stop as you expand it.

hardSign in to star problems

Exact Board Jumps I

Algorithms & Data Structures · Two out-edges per index: a graph search with a visited array.

easySign in to star problems

Restaurant Seating: Free Intervals

Algorithms & Data Structures · A +ppl/−ppl sweep; occupancy is constant between events.

mediumSign in to star problems

Count Pins on a Two-Column Screen

Algorithms & Data Structures · Only n scroll offsets matter — slide the window to a pin's top.

mediumSign in to star problems

Count Subarrays with Score Below K

Algorithms & Data Structures · Positives make sum × length monotone — a two-pointer window.

mediumSign in to star problems

Count Objects in a Pixel Grid via an API

Algorithms & Data Structures · Flood fill through an opaque API — isSameObject is the catch.

mediumSign in to star problems

Roads with Switches

Algorithms & Data Structures · Open roads cost 0, closed cost 1 — textbook 0-1 BFS.

mediumSign in to star problems

Bank Tellers I

Algorithms & Data Structures · A min-heap of (free time, agent) — tuple order breaks the ties.

mediumSign in to star problems

Prefix Search I

Algorithms & Data Structures · lower_bound on the prefix itself, then one startswith check.

easySign in to star problems

Stateful Search Autocomplete Session

Algorithms & Data Structures · A typing session over search counts: top three by frequency, then alphabetically.

hardSign in to star problems

Reverse Count-and-Say I

Algorithms & Data Structures · Parse (count, digit) pairs backward — adjacent runs must differ.

hardSign in to star problems

Design Pinterest's Home Feed

System Design · Recsys serving, not a social timeline — retrieval funnels, session state, four nines.

hardSign in to star problems

Design a Notification System

System Design · Fan-out, viral-pin aggregation under skew, and deciding not to send.

hardSign in to star problems

Design Search Typeahead

System Design · Tries with precomputed top-k, prefix sharding, and freshness by atomic swap.

mediumSign in to star problems

Design an Ads Event Reporting System

System Design · Streaming for dashboards, batch for billing truth — and hot keys from viral ads.

hardSign in to star problems

Design a Merchant Catalog Update Pipeline

System Design · Idempotent bulk ingestion with per-item ordering, fairness, and safe deletions.

mediumSign in to star problems

Design Image Upload and Serving for Pins

System Design · Presigned uploads, content-addressed variants, and a CDN that caches forever.

mediumSign in to star problems

Design the Pins and Boards Data Model

System Design · Sharding a relational model: object tables, mapping tables, no cross-shard joins.

mediumSign in to star problems

Design Visual Search

System Design · Embeddings, sharded ANN retrieval, and fresh pins searchable in seconds.

hardSign in to star problems

Design a Blob Storage Service

System Design · Metadata plane vs data plane, chunk replication, and the atomic-commit moment.

mediumSign in to star problems

Settle Debts II

Algorithms & Data Structures · Split the nonzero balances into as many zero-sum groups as possible.

hardSign in to star problems

Reconstruct Itinerary II

Algorithms & Data Structures · Rebuild the itinerary with Hierholzer's walk, then look for a repeat.

hardSign in to star problems

Exact Board Jumps II

Algorithms & Data Structures · BFS from the start: the layer where the last index appears is the answer.

mediumSign in to star problems

Bank Tellers II

Algorithms & Data Structures · The count served by time T is monotone — binary search T.

mediumSign in to star problems

Prefix Search II

Algorithms & Data Structures · Matches are contiguous: lower_bound the prefix, then the prefix bumped by one.

mediumSign in to star problems

Reverse Count-and-Say II

Algorithms & Data Structures · The reverse parse, memoized on (index, previous digit) — count, don't build.

hardSign in to star problems

Round Numeric Strings II

Algorithms & Data Structures · Split, round each value with string arithmetic, join — floats need not apply.

mediumSign in to star problems

Chunked Stream Reader II

Algorithms & Data Structures · Reassemble the lines, net the balances, then search for the fewest transfers.

hardSign in to star problems

Asked on LeetCode

45 questions · all time