List of common Google interview questions
Here's a list of common Google interview questions, categorized by type:
Coding/Algorithm Questions:
- Reverse a Linked List - Given a linked list, reverse it.
- Find the Longest Substring Without Repeating Characters - In a string, find the longest substring that does not repeat any characters.
- Merge Intervals - Given a collection of intervals, merge overlapping intervals.
- Implement a Trie (Prefix Tree) - Build a Trie data structure from scratch.
- Kth Largest Element in an Array - Find the Kth largest element in an unsorted array.
- Detect a Cycle in a Linked List - Given a linked list, determine if it has a cycle.
- Find All Anagrams in a String - Given a string and a non-empty pattern, find all substrings in the string that are anagrams of the pattern.
- Binary Tree Maximum Path Sum - Given a binary tree, find the maximum path sum.
- Rotting Oranges - Given a grid of oranges, determine how many minutes it takes for all oranges to rot, or return -1 if it is impossible.
- Word Ladder - Given two words (beginWord and endWord), and a dictionary's word list, find the length of the shortest transformation sequence from beginWord to endWord.
System Design Questions:
- Design a URL Shortener - How would you design a system like bit.ly?
- Design a Search Engine - How would you build a large-scale search engine like Google Search?
- Design Google Drive - How would you design a system for storing, sharing, and editing files online?
- Design a Distributed Caching System - How would you design a distributed cache like Memcached or Redis?
- Design a Chat Application - How would you design a real-time messaging system like WhatsApp?
- Design a Recommendation System - How would you design a recommendation engine for a platform like YouTube or Netflix?
- Design a Scalable Web Crawler - How would you design a web crawler to efficiently index the internet?
- Design a Social Media Platform - How would you design a system for users to post, follow, and interact with content (like Twitter)?
- Design a Load Balancer - How would you design a load balancer to distribute traffic across multiple servers?
- Design an API Rate Limiter - How would you design a system that limits the rate of API requests?
Behavioral Questions:
- Tell me about a time you failed.
- Describe a challenging project you worked on.
- How do you handle tight deadlines?
- Tell me about a time you had to resolve a conflict within your team.
- How do you prioritize tasks?
- Describe a time when you had to learn something new quickly.
- Tell me about a time you had to deal with ambiguity in a project.
- How do you approach problem-solving?
- Describe a time when you took initiative in a project.
- Tell me about a time when you had to influence others to achieve a goal.
Problem-Solving Questions:
- Estimate the number of tennis balls that can fit in a Boeing 747.
- How would you design a simple calculator?
- How many ways can you split a string of length N into K substrings?
- Explain the process of garbage collection in Java.
- What happens when you type a URL into a browser and press enter?
- Design an algorithm to find the median of a large data stream.
- Explain the concept of database normalization.
- How would you optimize the performance of a slow SQL query?
- Describe how you would solve the "Two Sum" problem.
- How would you handle a situation where a system you designed is failing intermittently?
Comments
Post a Comment