Pinterest Coding Interview Questions
30 Pinterest coding interview problems with full optimal solutions — 2 easy, 21 medium, 7 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an Pinterest interviewer values, and a FAQ section.
Showing 2 problems of 30
- #1easyfoundational
1. Two Sum
Two Sum is Pinterest's warm-up screening question: given an integer array and a target, return the indices of two numbers that add up to the target. The interviewer is checking that you can articulate the space-for-time tradeoff before writing the optimal hash-map solution.
4 free resourcesSolve → - #20easyfoundational
20. Valid Parentheses
Valid Parentheses is a Pinterest phone-screen staple: given a string of brackets, determine whether they are balanced. The interviewer is checking that you reach for a stack the moment you see nested matching, not nested loops.
4 free resourcesSolve →