Pinterest interview questions

Tech / SWE · 10 questions · last reported Jan 2025
Report an interview →

Browse 10 Pinterest interview questions for software engineering and software development interview preparation. Questions in this collection are tagged for full-time roles. Explore the topics and stages below and filter the collection to plan your practice.

Interview stages in this collection
Onsite, Phone screen, Online assessment (OA)
Practice topics
array (5), binary-search (3), string (3), backtracking (2), breadth-first-search (2), dynamic-programming (2), sorting (2), two-pointers (2)

Questions come from candidate contributions and online research. Reports reflect past experiences and do not guarantee what Pinterest will ask. Locked question details require points. Public examples below are free to read.

Read 3 free Pinterest interview question examples

Browse all Pinterest questions

10 questions

Free Pinterest interview question examples

Read the full problem statements and use the links to revisit or share a specific example.

Reconstruct Itinerary

Hard · Onsite · Phone screen · Full-time

Reconstruct an itinerary from flight tickets starting at JFK, using all tickets, with lexical ordering as the tiebreaker. Got this in my Pinterest phone screen. I used Hierholzer's algorithm for finding an Eulerian path, using a min-heap for each airport's destinations to get lexical order naturally. The interviewer asked why I build the path in reverse and whether the algorithm works when the graph isn't guaranteed to have an Eulerian path. Good discussion about the preconditions.

Shortest Path Obstacles

Hard · Onsite · Phone screen · Full-time

Shortest path with obstacle elimination from my Pinterest onsite. Find the shortest path in a grid from top-left to bottom-right, allowed to remove at most k obstacles. I used BFS with state being (row, col, remaining_eliminations) and a 3D visited array. The interviewer asked about memory usage for large grids with large k and whether A* with a heuristic would help. We also discussed pruning states where the remaining eliminations are enough to guarantee a straight-line path.

Count and Say

Medium · Phone screen · Online assessment (OA) · Onsite · Full-time

Quick warm-up in my Pinterest phone screen. Generate the nth term of the count-and-say sequence where each term is the run-length encoding of the previous one. The interviewer asked about the growth rate of the string length and whether there's a closed-form way to compute a specific term without generating all previous ones. Simple problem but they used it to gauge coding speed.