Google Interview Questions
The questions to prepare for Google interviews, across all roles. Questions from real interview reports rank first. Updated daily.
Implement a set-like structure using an array and hash map to support insert, delete, and random access in average O(1) time.
GoogleProblem Given the head of a singly linked list, reverse the list, and return the new head node. The linked list is defined as follows: python class ListNo...
GoogleUse a hash map to find two array elements that sum to a target in O(n) time.
GoogleFind the longest substring with all unique characters using a sliding window.
GoogleReplace missing sales fields with defined defaults and return a consistently ordered dataset.
GoogleUse joins, aggregation, and ROW_NUMBER to find the top 3 users per country by total transaction volume.
GoogleCompute daily active users and a 7-day rolling average using a CTE, distinct counts, and window functions.
GoogleRewrite a slow PostgreSQL reporting query to reduce scanned rows, avoid join multiplication, and return accurate monthly site metrics.
GoogleKeep going with a free account
Sign up to see one more question, run code and track your progress.