Google interview questions

506 questions from 140 candidate reports · 2012 to 2025

Online test

DSA

Showing 19 of 362 reported in this area

What is the worst-case time complexity of Quick Sort?
asked 3×easyPractice this →
Given a string, find the longest palindromic substring.
asked 2×mediumPractice this →
Evaluate a postfix expression.
asked oncemediumPractice this →
Implement Heap Sort algorithm.
asked oncemediumPractice this →
Optimize the computation of a^b.
asked oncemediumPractice this →
Find the median of a stream of numbers.
asked oncemediumPractice this →
Find the k-th largest element in an array.
asked oncemediumPractice this →
Answer queries on a Binary Search Tree (BST)
asked oncemediumPractice this →
Flatten an N-ary tree into a linear structure.
asked oncemediumPractice this →
Explain Binary Search Trees and their properties
asked oncemediumPractice this →
Explain heap data structure and its applications
asked oncemediumPractice this →
Implement the heapify function used in Heap Sort.
asked oncemediumPractice this →
Explain algorithms and solve a binary tree problem
asked oncemediumPractice this →
Evaluate an arithmetic expression with given conditions
asked oncemediumPractice this →
Follow-up to the hashing problem with increased difficulty
asked oncemediumPractice this →
Given an N x M matrix, find the minimum sum 3x3 sub-matrix.
asked oncemediumPractice this →
How do you detect a loop in a linked list in an optimal way?
asked oncemediumPractice this →
Conceptual questions covering almost all major data structures
asked oncemediumPractice this →
Count all submatrices with sum equal to zero in a given matrix
asked oncemediumPractice this →

CS fundamentals

Showing 30 of 169 reported in this area

What is transaction serialization in databases?
asked 2×mediumPractice this →
Analyze the output of the Linux command free -m.
asked 2×mediumPractice this →
Which is better: Heap Sort or Merge Sort? Explain why.
asked 2×mediumPractice this →
What is the full form of CDN?
asked 2×easyPractice this →
What is load average in Linux?
asked 2×easyPractice this →
What are the differences between TCP and UDP?
asked 2×easyPractice this →
Explain the DOM (Document Object Model) in JavaScript.
asked 2×easyPractice this →
How do you execute a command as another user in Linux?
asked 2×easyPractice this →
What HTTP status code is returned for invalid credentials?
asked 2×easyPractice this →
Which HTTP method is used to retrieve information of a resource?
asked 2×easyPractice this →
How can you center a paragraph using HTML, CSS, JavaScript, or jQuery?
asked 2×easyPractice this →
Which permissions are required to open, modify, and save a file in Linux?
asked 2×easyPractice this →
How is Heap Sort better than Merge Sort?
asked oncemediumPractice this →
Identify errors in a given code snippet.
asked oncemediumPractice this →
What does loss percentage indicate in MTR?
asked oncemediumPractice this →
How do you optimize queries on a big table?
asked oncemediumPractice this →
Predict the output of a given code snippet.
asked oncemediumPractice this →
What does packet loss percentage indicate in MTR?
asked oncemediumPractice this →
What is the best practice to save passwords securely?
asked oncemediumPractice this →
Conceptual questions on Graphs and traversal techniques
asked oncemediumPractice this →
How can queries on very large (big) tables be optimized?
asked oncemediumPractice this →
What are the best practices to store passwords securely?
asked oncemediumPractice this →
Explain indexing and normalization in DBMS with examples.
asked oncemediumPractice this →
Conceptual questions on Self-balancing Binary Search Trees
asked oncemediumPractice this →
Explain database indexing and normalization with examples.
asked oncemediumPractice this →
How can very large database queries be handled efficiently?
asked oncemediumPractice this →
How much time does it take to sort a heap in reverse order?
asked oncemediumPractice this →
Which type of content is not suitable to be served by a CDN?
asked oncemediumPractice this →
C++ language fundamentals and Standard Template Library (STL)
asked oncemediumPractice this →
How does a web server handle multiple requests simultaneously?
asked oncemediumPractice this →

Behavioural

Showing 3 of 71 reported in this area

What will you do if you are selected as GDSC Lead?
asked oncemediumPractice this →
How would you improve the revenue of an office cafeteria?
asked oncemediumPractice this →
If you are planning to conduct an event as GDSC Lead, what steps would you follow?
asked oncemediumPractice this →

System design

Showing 3 of 26 reported in this area

Design a brand-new feature for an existing Google product.
asked oncemediumPractice this →
How would you split a search query across multiple machines?
asked oncemediumPractice this →
If you were designing Google Photos, how would you identify smiling faces?
asked oncemediumPractice this →

Aptitude

Showing 3 of 25 reported in this area

Solve general aptitude questions under time constraints
asked oncemediumPractice this →
Find the missing term in the series: 34, 42, 58, 82, 114, 154, ?, 258
asked oncemediumPractice this →
Evaluate and rate websites based on given images and provide explanations for the ratings
asked oncemediumPractice this →

Puzzles

Showing 2 of 3 reported in this area

There are three rooms containing a Princess, Flowers, and a Snake. All rooms have incorrect nameplates. How do you find the Princess’s room without entering the Snake’s room?
asked oncemediumPractice this →
Design a treasure hunt problem where a treasure is hidden in one of n rooms. You start from Room 1 and have r keys that allow movement between rooms, but you do not know which key opens which room pair. Find a strategy to locate the treasure.
asked oncehardPractice this →

Showing 60 of 506 questions. Ranked by how often the same question came back across reports.

Practise a Google-style interview

A spoken interview built from these questions, scored when you finish; the report is yours.

Start practising

Common questions

What questions does Google ask?

Candidate interview reports most often cover DSA (55%) and CS fundamentals (26%).

How many rounds does Google interview have?

Candidate interview reports show an average of 2.9 rounds per experience, with a typical sequence of Online test. Individual interview paths can vary.

Is the Google interview hard?

Among questions with a reported difficulty, the mix is easy 31%, medium 51%, hard 18%.

Keep reading