Google interview questions

Tech / SWE · 15 questions
Report an interview →

Browse 15 Google 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
Phone screen, Onsite, Online assessment (OA)
Practice topics
Array (10), Hash Table (4), String (4), Dynamic Programming (3), Binary Search (2), Divide and Conquer (2), Linked List (2), Math (2)

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

Read 3 free Google interview question examples

Browse all Google questions

15 questions

Free Google interview question examples

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

Add Two Numbers

Medium · Phone screen · Onsite · Full-time

Two linked lists representing numbers in reverse order, add them together and return the sum as a new list. I walked both lists simultaneously with a carry variable, creating new nodes as I went. The main edge case is when the lists have different lengths or there's a leftover carry at the end. Classic linked list problem.

Trapping Rain Water

Hard · Onsite · Phone screen · Full-time

Given an elevation map, compute how much water gets trapped after rain. I used the two-pointer approach, maintaining the max height seen from each side and moving the smaller pointer inward. The amount trapped at each position is the difference between the limiting wall height and the bar height. The interviewer also asked about the stack-based approach and when I'd prefer one over the other.

Two Sum

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

Two Sum. Given an array and target, find two indices that add up to it. One-pass hash map solution. The interviewer used this as a quick warm-up and then moved into harder territory.