Pinterest Software Engineer Coding & Algorithms Interview Questions

Practice 30 real Coding & Algorithms interview questions for Software Engineer roles at Pinterest.

30 Questions 1 Company08.02.2026
Showing 20 results
Role
Pinterest logo
Pinterest
Hard
Software Engineer

Maintain an Escape-Room Leaderboard

Design and implement an EscapeRoomGame for a fixed set of players and rooms 0 through R. - advance(player_id) moves that player forward by one room in...

Coding & Algorithms
1
0
16 people solved
Aug 2, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

Rebalance Experiment Buckets with Minimal Reassignment

Rebalance Experiment Buckets with Minimal Reassignment Problem Implement rebalanceBuckets(bucketCount, groups, targetPercentages) -> rebalancedGroups....

Coding & Algorithms
0
0
14 people solved
Jul 23, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

Select the Nearest Eligible Elevator

Select the Nearest Eligible Elevator You are given a list of elevators. Each elevator has a current integer floor and a state: "up", "down", or "idle"...

Coding & Algorithms
14
0
103 people solved
May 12, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

List Unallocated Experiment Buckets

List Unallocated Experiment Buckets Problem An experiment system divides traffic into numbered buckets. Implement findUnallocatedBuckets(bucketCount, ...

Coding & Algorithms
1
0
11 people solved
Jul 23, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

Collect Pins from Reachable Boards

Collect Pins from Reachable Boards The interview report names a board-and-pin coding problem whose intended approach was breadth-first search but does...

Coding & Algorithms
1
0
19 people solved
Jul 2, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

Settle debts with minimal transactions

You are given a list of debts among a set of people, expressed as triples (debtor, creditor, amount) (equivalently (payer, payee, amount)), where each...

Coding & Algorithms
39
0
404 people solved
Sep 6, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Reconstruct itinerary with lexicographic ties

You are given m airline tickets as directed pairs [from, to]. Build an itinerary that starts at a specified airport start (e.g., "JFK") and uses every...

Coding & Algorithms
23
0
234 people solved
Sep 6, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Mark and Compact a Heap-Indexed Subtree

Mark and Compact a Heap-Indexed Subtree An interview report describes an array-encoded tree, marking a target and its descendants with -1, then moving...

Coding & Algorithms
1
0
22 people solved
Jul 2, 2026
Pinterest logo
Pinterest
Medium
Software Engineer Locked

Maximize Boxes Stored Through One Entrance

This question evaluates array manipulation, constraint reasoning, and optimization skills, touching on greedy and combinatorial allocation concepts un...

Coding & Algorithms
2
0
28 people solved
May 19, 2026
Pinterest logo
Pinterest
Medium
Software EngineerSenior+

Settle Group Expenses with Transfers

You are given a list of group expense transactions from a trip. Each transaction contains: - payer: the person who paid the full amount. - amount: the...

Coding & Algorithms
2
0
17 people solved
Jan 5, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

Design a violation log analyzer

You are given an append-only list of violation events as tuples (id: string, policy: string, date: ISO-8601 string). Build an in-memory "Violation Log...

Coding & Algorithms
41
0
281 people solved
Sep 6, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Determine equality of arbitrarily nested sets

Implement a function that determines whether two arbitrarily nested sets are equal. Sets are unordered and contain no duplicates; elements can be inte...

Coding & Algorithms
15
0
139 people solved
Sep 6, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Solve set equality and ad log top‑K

Problem Set (Coding) 1) Check whether two sets are equal You are given two integer arrays A and B that represent sets, except they may contain duplica...

Coding & Algorithms
19
0
198 people solved
Nov 11, 2025
Pinterest logo
Pinterest
Medium
Software Engineer Locked

Reconstruct route from unordered travel tickets

This question evaluates understanding of directed graph concepts and sequence reconstruction, assessing the ability to reason about ordered relationsh...

Coding & Algorithms
12
0
200 people solved
Jan 6, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

Find minimal time to serve customers

Find minimal time to serve customers You manage a bank with k tellers; teller i takes serviceTimes[i] minutes to serve one customer and works continuo...

Coding & Algorithms
5
0
91 people solved
Jul 28, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Implement string-based big integer multiplication

Question Implement multiplyStrings(a, b) to multiply two non-negative integers given as decimal strings and return their product as a decimal string. ...

Coding & Algorithms
14
0
105 people solved
Sep 6, 2025
Pinterest logo
Pinterest
Medium
Software Engineer Locked

Solve Multiple Coding Interview Problems

This multi-part question evaluates skills in graph traversal and shortest-path reasoning (minimum transit routes), precise string and numeric manipula...

Coding & Algorithms
3
0
25 people solved
May 15, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

Assign Pins to Shortest Columns

You are given a list of pins, where each pin has a height, and a fixed number of columns in a masonry-style layout. Process the pins in their original...

Coding & Algorithms
0
0
11 people solved
Apr 9, 2026
Pinterest logo
Pinterest
Medium
Software Engineer Locked

Find First Prefix-Matching Word

This question evaluates proficiency in string processing and prefix-matching within arrays, testing the ability to identify the first occurrence and h...

Coding & Algorithms
9
0
74 people solved
Feb 24, 2026
Pinterest logo
Pinterest
Medium
Software Engineer Locked

Solve Four Interview Coding Problems

This question set evaluates algorithmic problem-solving skills including graph traversal and itinerary reconstruction, time-sorted search and binary s...

Coding & Algorithms
8
0
60 people solved
Feb 1, 2026

Explore more Pinterest Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Browse all