Skip to the content.

Google Interview Questions: SWE Coding Patterns, Process and Prep (2027 Guide)

A free, in-depth guide to Google interview questions for software engineers: the coding patterns most frequently reported in public Google SWE interview experiences, LeetCode practice problems with original approach notes, tested Python solutions, and a clear explanation of the Google hiring process in 2026, including the Google Hiring Assessment, the return of in-person interviews, the “Googleyness and Leadership” round, and the new Gemini-assisted interview pilot.

Independent community guide; not affiliated with or endorsed by Google.

Last reviewed: December 2026

Honest scope. Google does not publish its interview questions and bans reuse of leaked ones. Nothing here is official or leaked. The problems below are public LeetCode problems chosen to practice the patterns that come up again and again in public candidate write-ups. Approach notes and code in solutions/ are original.

Table of Contents

The Google SWE hiring process

Google’s official hiring process page says the process typically takes roughly 6-8 weeks and may include the steps below. Details vary by role, level and country; your recruiter confirms the exact plan.

Stage What Google says What candidates commonly report for SWE
Assessments You may take the Google Hiring Assessment (workstyle) and role-related assessments such as a coding exercise Some early-career candidates get an online coding challenge
Recruiter conversations One or two short calls about skills, preferences and location Level and team area are discussed here
Technical screen (part of “interviews”) One or two 45-minute coding interviews over video, in a shared doc or editor
Interviews A panel of interviews, virtual or in person, with structured rubrics and no brain teasers Usually 3-4 coding rounds, plus a Googleyness and Leadership round; system design from about L5
Decision Google brings together application and interview feedback and applies internal reviews Historically a hiring committee reviews the packet; some candidates then do team matching
Offer Recruiter walks through compensation and benefits Team match may happen before or after the committee

Google’s interview tips page adds that outcomes can take several weeks because interviewers write structured feedback and Google runs internal reviews.

What changed in 2025-2026

Change Status Source
AI tools banned in interviews Official: Google says AI tools (and Google Search) are not permitted during interviews Google hiring process, interview tips
In-person interviews are back for some roles Official: initial interviews are often virtual, then onsite for some roles Google interview tips
Gemini-assisted “code comprehension” pilot Reported May 2026 (Business Insider, confirmed by a Google spokesperson): select US teams, early and mid-career SWE roles, starting the second half of 2026; candidates read, debug and improve an existing codebase with Gemini Entrepreneur summary of the report
Googleyness and Leadership adds a technical design conversation Reported in the same May 2026 coverage, as part of the pilot Same as above
Open-ended engineering problem for early-career candidates Reported in the same coverage: replaces one traditional technical interview in the pilot Same as above

How to read this: unless your recruiter explicitly says a round allows Gemini, assume no AI at all. If you are in the pilot, practice reading unfamiliar code fast, writing precise prompts, and checking AI output with tests. Section Code comprehension practice covers this.

What each interview round looks like

Round Length What you do Signal
Coding (data structures and algorithms) about 45 min One problem with follow-ups, or two shorter ones, in a plain editor or Google Doc (virtual) or whiteboard/laptop (onsite) Problem solving, code quality, complexity, testing
Code comprehension (pilot only) about 45-60 min Read an existing codebase, find bugs, improve performance, with Gemini available Reading code, debugging, validating AI output
System design (usually L5+) about 45 min Design a large system from vague requirements Requirements, scale estimates, tradeoffs, depth
Googleyness and Leadership (G&L) about 45 min Behavioral and hypothetical questions; in the pilot, also a design discussion about your past work Collaboration, ambiguity, ownership, leading without authority

Google’s own videos are worth watching once: How to solve a Google coding interview question, How to prepare for Google’s technical interview questions and How to prepare for Google’s non-technical interview questions.

How Google evaluates coding interviews

Google says every candidate is assessed with the same structured rubric for the role. Commonly reported rubric areas for SWE coding rounds:

Area What strong looks like
Problem understanding Restates the problem, asks about input size and edge cases, writes an example
Algorithm Finds a correct approach, explains why it works, improves from brute force, states time and space complexity
Coding Clean, idiomatic code in one language, sensible names and helpers, no hand-waving
Testing and debugging Walks through examples, finds own bugs, considers edge cases unprompted
Communication Thinks aloud, responds to hints, explains tradeoffs

Google coding interviews are known for follow-up questions: after the first solution, the interviewer changes constraints (“what if the data is streamed?”, “what if queries are frequent?”, “what if it does not fit on one machine?”). Practice asking yourself the follow-up after every problem.

Coding patterns and practice problems

Google reports lean harder than average toward graphs, dynamic programming, binary search on the answer, and data-structure design, and often present a problem as a story you must map to a known pattern. Problems marked “Solution included” have tested code in solutions/google.py. “Premium (paid)” problems need LeetCode Premium; every section has free ones.

1. Arrays, hashing and prefix sums

# Problem Level Access Approach notes
1 1. Two Sum Easy Free Hash map of seen values; the classic warm-up, often extended to “count pairs” or “stream of numbers”.
2 128. Longest Consecutive Sequence Medium Free Set of values; only start counting at numbers whose predecessor is missing. O(n). Solution included.
3 560. Subarray Sum Equals K Medium Free Running prefix sum and a counter of earlier prefix sums.
4 1423. Maximum Points You Can Obtain from Cards Medium Free Taking k from the ends equals leaving a middle window of n-k; minimize that window sum.
5 1007. Minimum Domino Rotations For Equal Row Medium Free Only tops[0] or bottoms[0] can be the target value; check both in one pass.
6 304. Range Sum Query 2D - Immutable Medium Free 2D prefix sums with inclusion-exclusion.
7 238. Product of Array Except Self Medium Free Left products then right products, no division.

2. Two pointers, sliding window and strings

# Problem Level Access Approach notes
1 76. Minimum Window Substring Hard Free Expand right until all needed counts are met, then shrink left while valid.
2 340. Longest Substring with At Most K Distinct Characters Medium Premium (paid) Window with a count map; shrink when the map has more than k keys.
3 424. Longest Repeating Character Replacement Medium Free Window is valid while window length minus the max letter count is at most k.
4 68. Text Justification Hard Free Greedy line packing, then distribute spaces with divmod; last line left-justified. Pure careful implementation.
5 394. Decode String Medium Free Stack of (string so far, repeat count). Solution included.
6 42. Trapping Rain Water Hard Free Two pointers with running maxima from both sides.

3. Binary search, including “binary search on the answer”

A very common Google framing: “find the minimum X such that the plan is feasible”. If feasibility is monotonic, binary search X.

# Problem Level Access Approach notes
1 875. Koko Eating Bananas Medium Free Binary search the eating speed; feasibility = total hours at that speed is at most h. Solution included.
2 410. Split Array Largest Sum Hard Free Binary search the largest allowed subarray sum; greedily count pieces.
3 1011. Capacity To Ship Packages Within D Days Medium Free Same template as above with ship capacity.
4 162. Find Peak Element Medium Free Compare mid with mid+1 and move toward the higher side. O(log n).
5 4. Median of Two Sorted Arrays Hard Free Binary search a partition in the shorter array so left halves hold the smaller half.
6 33. Search in Rotated Sorted Array Medium Free One half is always sorted; check whether the target lies inside it.
7 1482. Minimum Number of Days to Make m Bouquets Medium Free Binary search the day; count runs of bloomed flowers.

4. Graphs: BFS, DFS and shortest paths

# Problem Level Access Approach notes
1 200. Number of Islands Medium Free DFS or BFS flood fill from each unvisited land cell.
2 127. Word Ladder Hard Free BFS over words using wildcard buckets for neighbors.
3 752. Open the Lock Medium Free BFS over 10,000 states; each move turns one wheel up or down; skip dead ends. Solution included.
4 815. Bus Routes Hard Free BFS where nodes are routes (or stops); map each stop to the routes that pass it.
5 1293. Shortest Path in a Grid with Obstacles Elimination Hard Free BFS over (row, col, eliminations left); prune when k is at least the Manhattan distance.
6 773. Sliding Puzzle Hard Free BFS over board states encoded as strings.
7 778. Swim in Rising Water Hard Free Dijkstra-like min-heap on the max elevation along a path, or binary search plus BFS.
8 743. Network Delay Time Medium Free Dijkstra from the source.
9 787. Cheapest Flights Within K Stops Medium Free Bellman-Ford limited to k+1 rounds.
10 399. Evaluate Division Medium Free Weighted graph a to b with weight a/b; DFS or BFS multiplying weights. Solution included.

5. Topological sort and union-find

# Problem Level Access Approach notes
1 207. Course Schedule Medium Free Kahn’s algorithm; a cycle exists if not every node is processed.
2 269. Alien Dictionary Hard Premium (paid) Compare adjacent words to get letter-order edges, then topological sort; invalid if a word is followed by its own prefix.
3 721. Accounts Merge Medium Free Union-find over emails, then group by root and sort. Solution included.
4 684. Redundant Connection Medium Free Union-find; the first edge joining two nodes already connected is the answer.
5 947. Most Stones Removed with Same Row or Column Medium Free Union rows and columns; answer = stones minus number of components.
6 990. Satisfiability of Equality Equations Medium Free Union all “==” pairs first, then check that no “!=” pair shares a root.
7 305. Number of Islands II Hard Premium (paid) Online union-find: add land cells one at a time and track the component count.

6. Trees and tries

# Problem Level Access Approach notes
1 222. Count Complete Tree Nodes Medium Free Compare leftmost and rightmost heights; a perfect subtree has 2^h - 1 nodes. O(log^2 n).
2 230. Kth Smallest Element in a BST Medium Free Iterative in-order traversal, stop at the kth node.
3 124. Binary Tree Maximum Path Sum Hard Free Post-order gain per node; update a global max with both children.
4 366. Find Leaves of Binary Tree Medium Premium (paid) Group nodes by height from the bottom (leaf = 0).
5 297. Serialize and Deserialize Binary Tree Hard Free Pre-order with null markers.
6 208. Implement Trie (Prefix Tree) Medium Free Dict-of-dicts trie with an end marker. Solution included.
7 212. Word Search II Hard Free Trie plus board DFS; remove found words from the trie to prune.
8 211. Design Add and Search Words Data Structure Medium Free Trie; “.” branches into every child.

7. Intervals, sweep line and ordered data

# Problem Level Access Approach notes
1 56. Merge Intervals Medium Free Sort by start, merge overlaps.
2 57. Insert Interval Medium Free Three phases: before, overlapping (merge), after.
3 729. My Calendar I Medium Free Sorted list of bookings; binary search the neighbor and check overlap. Solution included.
4 731. My Calendar II Medium Free Keep single and double bookings; reject when a new event overlaps any double booking.
5 715. Range Module Hard Free Sorted list of disjoint intervals, update with bisect.
6 853. Car Fleet Medium Free Sort by position descending; compute arrival times; a car slower to arrive than the fleet ahead forms a new fleet.
7 253. Meeting Rooms II Medium Premium (paid) Min-heap of end times, or sort starts and ends separately.
8 759. Employee Free Time Hard Premium (paid) Merge all intervals, then report the gaps.

8. Heaps and design problems

# Problem Level Access Approach notes
1 295. Find Median from Data Stream Hard Free Two heaps, balanced sizes.
2 2034. Stock Price Fluctuation Medium Free Dict of timestamp to price, plus max-heap and min-heap with lazy deletion of stale entries.
3 1146. Snapshot Array Medium Free Per-index history lists, binary search by snap id.
4 359. Logger Rate Limiter Easy Premium (paid) Dict of message to next allowed time.
5 146. LRU Cache Medium Free Hash map plus doubly linked list.
6 315. Count of Smaller Numbers After Self Hard Free Merge sort counting, or a Fenwick tree over value ranks from the right.
7 307. Range Sum Query - Mutable Medium Free Fenwick (binary indexed) tree or segment tree for point update and range sum.

9. Dynamic programming

Google reports include DP far more often than Meta’s official guidance (Meta says it does not ask DP). Practice both top-down and bottom-up.

# Problem Level Access Approach notes
1 62. Unique Paths Medium Free dp[c] += dp[c-1] row by row; or the combination formula.
2 72. Edit Distance Medium Free dp[i][j] = min of insert, delete, replace; equal characters copy the diagonal. Solution included.
3 300. Longest Increasing Subsequence Medium Free Patience sorting with bisect for O(n log n).
4 1048. Longest String Chain Medium Free Sort by length; dp[word] = 1 + max dp of each word with one letter removed. Solution included.
5 329. Longest Increasing Path in a Matrix Hard Free DFS with memoization; the strict increase makes it a DAG.
6 221. Maximal Square Medium Free dp[i][j] = 1 + min(top, left, top-left) for each 1 cell.
7 140. Word Break II Hard Free Memoized DFS returning all sentences from each index.
8 312. Burst Balloons Hard Free Interval DP: choose the last balloon to burst in each interval.
9 354. Russian Doll Envelopes Hard Free Sort by width ascending and height descending, then LIS on heights.

10. Code reading and debugging

For the Gemini-assisted pilot (and real work), practice reading code you did not write. There is no LeetCode category for this, so build the skill directly:

System design for L5 and above

Commonly reported Google design prompts emphasize global scale and Google-like products:

Prompt Focus areas
Design a URL shortener or paste service ID generation, read-heavy caching, expiry
Design a web crawler Frontier queue, politeness, dedup with hashing, distributed workers
Design Google Docs-style collaborative editing Operational transforms or CRDTs, presence, storage of revisions
Design YouTube view counting or a top-K trending system Approximate counting, stream processing, windowing
Design a distributed key-value store Partitioning, replication, consistency choices, failure detection
Design a rate limiter or quota system Token bucket, distributed counters, accuracy vs cost
Design autocomplete / typeahead Tries with top-K at nodes, offline aggregation, caching by prefix
Design a ride-sharing or maps ETA service Geo indexing, matching, real-time updates

Free papers from Google Research that interviewers often expect you to know at a high level:

Googleyness and Leadership

The G&L round checks how you work with people and ambiguity. Google’s interview tips page names what it looks for in examples: navigating complexity and ambiguity, working with people and teams (including conflict and influence), and your leadership style, with or without a formal title. Commonly reported question themes:

Theme Example questions (paraphrased, not official)
Ambiguity Tell me about a time requirements were unclear. How did you proceed?
Collaboration and conflict Describe a disagreement with a teammate and how it was resolved.
Leading without authority Tell me about a time you influenced a decision you did not own.
Feedback and growth Tell me about critical feedback you received and what you changed.
User focus Tell me about a time you advocated for users against a deadline.
Inclusion How have you made sure quieter voices were heard on your team?
Hypotheticals What would you do if a teammate kept missing commitments?

Google suggests a data-driven format for accomplishments: “Accomplished X, as measured by Y, by doing Z”, and recommends STAR for examples. If you are in the 2026 pilot, prepare to discuss the technical design of one or two of your past projects in depth: the architecture, the tradeoffs, what broke, and what you would change.

Study plans

6-week plan (most candidates)

Week Coding focus (sections) Other
1 1, 2 Watch Google’s three prep videos; set up a plain-editor practice routine
2 3, 4 One timed 45-minute mock per week from here on
3 5, 6 Draft 8 G&L stories
4 7, 8 System design basics if L5+ (2 prompts)
5 9, 10 2 more design prompts; G&L mock
6 Redo missed problems; 3 full mocks Rest the day before

3-week sprint

Do two sections every three days, one timed mock every other day, and redo every problem you could not solve within 45 minutes.

Expectations by level

Generalized from public reports; your recruiter’s guidance wins.

Level Typical title Coding Design G&L
L3 Software Engineer II (entry) Main focus; mediums and some hards Rare Yes
L4 Software Engineer III Main focus, faster and cleaner Sometimes light design Yes
L5 Senior Software Engineer Still several coding rounds Usually one system design round Yes, with more leadership depth
L6+ Staff and above Fewer coding rounds, higher bar One or more design rounds, broad scope Strong focus on influence and direction

Interview-day technique

  1. Clarify for 2-4 minutes: input size, duplicates, empty input, expected output format. Write one example.
  2. State a brute force and its complexity, then look for the bottleneck.
  3. Name the pattern you are using (“this is binary search on the answer because feasibility is monotonic”).
  4. Code cleanly in a plain editor (no autocomplete). Use helper functions.
  5. Test by hand with your example plus an edge case. Fix your own bugs.
  6. Pre-empt the follow-up: say what changes for streaming input, many queries, or multiple machines.

Best resources

Resource Type Cost Best for
Google: Our hiring process Official page Free Process, timeline, AI policy
Google: Interview tips Official page Free Behavioral expectations, onsite logistics
Google: Build your future resources Official resource hub Free Google’s own learning paths for students and early career
NeetCode roadmap Problem list + videos Free (paid tier exists) Pattern practice
LeetCode Practice platform Free; Premium is paid Problems and timed contests
Competitive Programmer’s Handbook by Antti Laaksonen Free PDF from the author Free Graphs, DP, segment trees at Google difficulty
CSES Problem Set Practice Free Harder algorithm drills
The System Design Primer GitHub guide Free Design fundamentals
Google SRE books Free online books Free Reliability and scale vocabulary
Cracking the Coding Interview by Gayle Laakmann McDowell Book Paid Classic practice and process advice
interviewing.io Mock interviews Free practice tier; paid mocks Realistic mocks with engineers

Best pick if you only use three: Google’s two official pages, NeetCode’s roadmap for coding, and the System Design Primer (L5+).

Running the solutions

git clone https://github.com/Ralpberry-Labs/google-interview-questions.git
cd google-interview-questions
python3 -m unittest discover -v

Python 3 standard library only. Attempt each problem first; compare afterwards.

FAQ

Are these real Google interview questions? No. Google does not publish its questions and this repo does not use leaked ones. These are public LeetCode problems for the patterns most often reported in public Google interview experiences.

How many coding rounds are in a Google SWE interview? Most public reports describe one or two technical screens followed by three or four coding interviews, plus a Googleyness and Leadership round, with system design added at about L5 and above. Your recruiter will tell you the exact plan.

Does Google ask dynamic programming? Yes, more often than some peers. Prepare the core DP patterns in section 9.

Can I use AI during a Google interview? Google’s official pages say AI tools are not permitted during interviews. The exception is a reported 2026 pilot where some candidates use Gemini in a specific code comprehension round; you will be told explicitly if that applies.

Are Google interviews in person now? Google says it has reintroduced in-person interviews for some roles, often after virtual initial interviews. Your recruiter confirms.

What language should I use? Any mainstream language you are fluent in: Python, Java, C++, Go and JavaScript are all common. Write idiomatic code.

How long does the Google process take? Google says roughly 6-8 weeks typically, and that interview outcomes can take several weeks because of internal reviews. Team matching can add time.

What is the Google Hiring Assessment? An assessment Google says measures workstyle skills, which some candidates take before interviews. Answer honestly.

Do I need LeetCode Premium? No. Every section has free problems.

What is team matching? Commonly reported: after passing the interviews, candidates talk with hiring managers to find a team before the offer. It is a mutual fit conversation, not another technical test.

Where to go next

Contributing

Pull requests and issues are welcome for broken links, process changes (with a public source), new practice problems with your own approach notes, and solution bugs (add a failing test). Please never submit confidential, NDA-covered or leaked questions, or copied paid content.

If this helped you, a star helps others find it.

More free resources

Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.