Upload Button Icon Add office photos

Google

Compare button icon Compare button icon Compare

Filter interviews by

Google Software Developer Interview Questions and Answers

Updated 10 Jul 2025

90 Interview questions

🔥 Asked by recruiter 2 times
A Software Developer was asked
Q. 

Alien Dictionary Problem Statement

You are provided with a sorted dictionary (by lexical order) in an alien language. Your task is to determine the character order of the alien language from this dictionar...

Ans. 

Given a sorted alien dictionary, determine the character order of the alien language.

  • Create a graph data structure to represent the relationships between characters based on the given dictionary.

  • Perform a topological sort on the graph to determine the character order of the alien language.

  • Return the character array obtained from the topological sort as the final output.

A Software Developer was asked
Q. 

Minimum and Maximum Candy Cost Problem

Ram is in Ninjaland, visiting a unique candy store offering 'N' candies each with different costs. The store has a special offer: for every candy you purchase, you ca...

Ans. 

Find minimum and maximum cost to purchase all candies with special offer of free candies.

  • Iterate through the candy costs array and sort it in ascending order.

  • For minimum cost, start from the lowest cost candy and take free candies until reaching the next higher cost candy.

  • For maximum cost, start from the highest cost candy and take free candies until reaching the next lower cost candy.

Software Developer Interview Questions Asked at Other Companies

asked in Amazon
Q1. Maximum Subarray Sum Problem Statement Given an array of integers ... read more
asked in Rakuten
Q2. Merge Two Sorted Arrays Problem Statement Given two sorted intege ... read more
asked in Amazon
Q3. Minimum Number of Platforms Needed Problem Statement You are give ... read more
asked in Cognizant
Q4. Nth Fibonacci Number Problem Statement Calculate the Nth term in ... read more
asked in PhonePe
Q5. Form a Triangle Problem Statement You are given an array of integ ... read more
A Software Developer was asked
Q. 

Connecting Ropes with Minimum Cost

You are given 'N' ropes, each of varying lengths. The task is to connect all ropes into one single rope. The cost of connecting two ropes is the sum of their lengths. You...

Ans. 

Connect ropes with minimum cost by merging two smallest ropes at a time.

  • Sort the array of rope lengths in ascending order.

  • Merge the two smallest ropes at a time and update the cost.

  • Repeat until all ropes are merged into one.

  • Return the total cost as the minimum cost to connect all ropes.

A Software Developer was asked
Q. 

Swap And Maximize Problem Statement

You are given a circular array consisting of N integers. Your task is to find the maximum sum of the absolute differences between adjacent elements by rearranging the ar...

Ans. 

Find the maximum sum of absolute differences between adjacent elements in a circular array by rearranging the elements.

  • Sort the array in non-decreasing order.

  • Alternate between picking the smallest and largest elements to maximize the sum of absolute differences.

  • Calculate the sum of absolute differences between adjacent elements in the rearranged array.

A Software Developer was asked
Q. 

Farthest Distance From Lands Problem Statement

Given a binary square matrix 'ARR' with 'N' rows and 'N' columns, where '0' represents water and '1' represents land.

Determine the water cell whose distance...

Ans. 

Find the water cell farthest from land in a binary matrix using Manhattan distance.

  • Iterate through the matrix to find all land cells and water cells

  • Calculate the Manhattan distance of each water cell to the nearest land cell

  • Return the maximum distance found

A Software Developer was asked
Q. 

Problem Statement: Minimize the Maximum

You are given an array of integers and an integer K. For each array element, you can adjust it by increasing or decreasing it by a value of K. Your goal is to minimi...

Ans. 

Given an array of integers and an integer K, minimize the difference between the maximum and minimum elements after adjusting each element by +/- K.

  • Sort the array in non-decreasing order.

  • For each element, calculate the difference between the current element and the next element.

  • Adjust the element by adding or subtracting K to minimize the difference.

  • Return the minimum possible difference between the maximum and mi...

A Software Developer was asked
Q. 

Chocolate Distribution Problem

You are given an array/list CHOCOLATES of size 'N', where each element represents the number of chocolates in a packet. Your task is to distribute these chocolates among 'M' ...

Ans. 

Distribute chocolates among students to minimize the difference between the largest and smallest number of chocolates.

  • Sort the array of chocolates.

  • Use sliding window technique to find the minimum difference between the largest and smallest number of chocolates.

  • Return the minimum difference as the output.

Are these interview questions helpful?
A Software Developer was asked
Q. 

Covid Vaccination Distribution Problem

As the Government ramps up vaccination drives to combat the second wave of Covid-19, you are tasked with helping plan an effective vaccination schedule. Your goal is ...

Ans. 

Given constraints, find max vaccines administered on a specific day during a vaccination drive.

  • Iterate through each test case and calculate the maximum number of vaccines distributed on the specified day.

  • Distribute vaccines evenly across days while maximizing the number on the specified day.

  • Ensure that the sum of vaccines administered does not exceed the maximum allowed.

  • Consider edge cases like when the number of ...

A Software Developer was asked
Q. 

Special Numbers Problem Statement

Your task is to find the total count of special numbers within a range from 1 to a given integer, 'MAXVAL'. A special number is defined as a number whose digits, when rota...

Ans. 

Count the total number of special numbers within a given range by rotating digits 180 degrees.

  • Create a function to check if a number is a special number by rotating its digits.

  • Iterate through the range from 1 to MAXVAL and count the special numbers.

  • Handle the digit rotation mapping for 0, 1, 6, 8, 9.

  • Return the count of special numbers for each test case.

A Software Developer was asked
Q. 

Painter's Partition Problem Statement

Given an array/list representing boards, where each element denotes the length of a board, and a number ‘K’ of available painters, determine the minimum time required ...

Ans. 

Determine the minimum time required to paint all boards with given constraints.

  • Use binary search to find the minimum and maximum possible time to paint all boards.

  • Iterate through the boards and assign them to painters based on the time constraints.

  • Calculate the total time taken to paint all boards with the assigned painters.

Google Software Developer Interview Experiences

102 interviews found

Software Developer Interview Questions & Answers

user image Harima Malhotra

posted on 10 Jul 2025

Interview experience
5
Excellent
Difficulty level
Hard
Process Duration
Less than 2 weeks
Result
Not Selected

I appeared for an interview in Jan 2025, where I was asked the following questions.

  • Q1. Related to array
  • Q2. Follow up question using graph algorithms

Software Developer Interview Questions & Answers

user image amazing childrens

posted on 1 Oct 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(5 Questions)

  • Q1. Introduce yourself
  • Ans. 

    I am a software developer with 5 years of experience in Java, Python, and SQL.

    • 5 years of experience in Java, Python, and SQL

    • Worked on developing web applications using Java Spring framework

    • Proficient in database management with SQL

  • Answered by AI
  • Q2. Array question of leetcode
  • Q3. Python basic and medium
  • Q4. C++ standard template library
  • Q5. Dynamic programming questions
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-

I applied via Campus Placement

Round 1 - Technical 

(2 Questions)

  • Q1. What is tree in data structure
  • Ans. 

    A tree is a hierarchical data structure consisting of nodes, with a root node and child nodes, used to represent relationships.

    • A tree consists of nodes connected by edges.

    • The top node is called the root, and nodes without children are leaves.

    • Trees can be binary (each node has at most two children) or n-ary (nodes can have n children).

    • Common types include binary trees, binary search trees, and AVL trees.

    • Example: A famil...

  • Answered by AI
  • Q2. What is hashing in data structure
  • Ans. 

    Hashing is a technique used to convert data into a fixed-size value for efficient data retrieval and storage.

    • Hash functions take input data and produce a hash code, e.g., SHA-256.

    • Hash tables use key-value pairs for fast data access, e.g., storing user data by user ID.

    • Collisions occur when different inputs produce the same hash; techniques like chaining or open addressing resolve this.

    • Hashing is widely used in data stru...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - good

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via AmbitionBox and was interviewed in Apr 2024. There were 3 interview rounds.

Round 1 - Aptitude Test 

An aptitude test is an exam used to determine an individual's skill or propensity to succeed in a given activity.

Round 2 - Technical 

(4 Questions)

  • Q1. Why is Java a platform independent language?
  • Ans. 

    Java is platform independent due to its bytecode and JVM implementation.

    • Java code is compiled into bytecode, which can run on any platform with a Java Virtual Machine (JVM)

    • JVM acts as an interpreter, translating bytecode into machine code specific to the underlying platform

    • This allows Java programs to be written once and run anywhere, without the need for recompilation

  • Answered by AI
  • Q2. What are Static Binding and Dynamic Binding?
  • Ans. 

    Static binding is resolved at compile time, while dynamic binding is resolved at runtime.

    • Static binding is also known as early binding, where the method call is resolved at compile time based on the type of the object.

    • Dynamic binding is also known as late binding, where the method call is resolved at runtime based on the actual type of the object.

    • Example of static binding: method overloading.

    • Example of dynamic binding:...

  • Answered by AI
  • Q3. Explain Virtual Machine (JVM) architecture.
  • Ans. 

    JVM is a virtual machine that enables a computer to run Java programs.

    • JVM is platform-independent and converts Java bytecode into machine code.

    • It consists of class loader, runtime data areas, execution engine, and native method interface.

    • JVM manages memory, garbage collection, and exception handling.

    • Examples of JVM implementations include Oracle HotSpot, OpenJ9, and GraalVM.

  • Answered by AI
  • Q4. What is the lambda expression in JAVA?
  • Ans. 

    Lambda expression in JAVA is a concise way to represent a method implementation using a functional interface.

    • Lambda expressions are used to provide a more concise way to implement functional interfaces in JAVA.

    • They are similar to anonymous classes but with less boilerplate code.

    • Lambda expressions can be used to pass behavior as an argument to a method.

    • Syntax: (parameters) -> expression or (parameters) -> { statements; ...

  • Answered by AI
Round 3 - HR 

(1 Question)

  • Q1. Tell me something about yourself?
  • Ans. Thank you for allowing me to introduce myself. My name is Sivaranjani and I am from Salem City in Tamilnadu. I completed my bachelor degree with the CSE branch from Muthayammal Engineering College. First of all, I want to introduce myself with my soft skills. I am optimistic, smart, self-confident, hardworking, and have a positive mindset. My technical skills include proficiency in Java programming language, C program...
  • Answered Anonymously

Interview Preparation Tips

Topics to prepare for Google Software Developer interview:
  • Core Java
  • Advanced Java
  • MySQL
Interview preparation tips for other job seekers - Consider what you enjoy doing and what makes you happy.

Skills evaluated in this interview

Interview experience
2
Poor
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(2 Questions)

  • Q1. Binary search on array
  • Q2. Multi source bfs on the array
  • Ans. 

    Multi-source BFS on an array of strings involves finding the shortest path from multiple starting points to a target point.

    • Implement BFS algorithm to traverse the array of strings starting from multiple sources simultaneously.

    • Maintain a queue of nodes to visit next, and keep track of visited nodes to avoid revisiting.

    • Update the distance of each node from the sources as you traverse the array.

    • Example: Given an array of ...

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Hard
Process Duration
More than 8 weeks
Result
Not Selected

I appeared for an interview in May 2025, where I was asked the following questions.

  • Q1. Leetcode hard probem
  • Q2. Leet code medium problem

Interview Preparation Tips

Interview preparation tips for other job seekers - Try to solve the hard questions on LeetCode as well.

Software Developer Interview Questions & Answers

user image Avinash Kumar S S

posted on 9 Oct 2024

Interview experience
5
Excellent
Difficulty level
Hard
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Referral and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Explain about your project in detail
  • Ans. 

    Developed a web application for online shopping with user authentication and payment gateway integration.

    • Implemented user authentication using JWT tokens

    • Integrated Stripe API for payment processing

    • Designed responsive UI using React and Bootstrap

    • Utilized Node.js for backend development

  • Answered by AI
  • Q2. Asked to solve 2 leetcode hard problems
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

DSA hard of dp and tree and graph, segments

Round 2 - Coding Test 

DSA medium questions were asked in the interview

Round 3 - One-on-one 

(1 Question)

  • Q1. DSA medium to hard
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Test was conducted online on HAckerrank platform

Round 2 - Technical 

(2 Questions)

  • Q1. Sliding window , easy leetcode
  • Q2. HASHMAP ,find the all buddy
  • Ans. 

    A HashMap is a data structure that stores key-value pairs. To find all buddies in a HashMap, we need to iterate through the entries and compare values.

    • Iterate through the entries of the HashMap

    • Compare values to find buddies

    • Store buddies in an array of strings

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I appeared for an interview in Mar 2025, where I was asked the following questions.

  • Q1. Tell. Me. about your self
  • Q2. Why. Should we choose you
  • Ans. 

    I bring a unique blend of skills, experience, and passion for software development that aligns perfectly with your team's goals.

    • Proven experience in developing scalable applications, such as a recent project where I improved performance by 30%.

    • Strong problem-solving skills demonstrated through successful debugging of complex issues in previous roles.

    • Excellent teamwork and communication abilities, as shown by my role in...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Speaking slowly and clearly can help you appreciate related and confident

Top trending discussions

View All
Interview Tips & Stories
1w (edited)
a team lead
Why are women still asked such personal questions in interview?
I recently went for an interview… and honestly, m still trying to process what just happened. Instead of being asked about my skills, experience, or how I could add value to the company… the questions took a totally unexpected turn. The interviewer started asking things like When are you getting married? Are you engaged? And m sure, if I had said I was married, the next question would’ve been How long have you been married? What does my personal life have to do with the job m applying for? This is where I felt the gender discrimination hit hard. These types of questions are so casually thrown at women during interviews but are they ever asked to men? No one asks male candidates if they’re planning a wedding or how old their kids are. So why is it okay to ask women? Can we please stop normalising this kind of behaviour in interviews? Our careers shouldn’t be judged by our relationship status. Period.
Got a question about Google?
Ask anonymously on communities.

Google Interview FAQs

How many rounds are there in Google Software Developer interview?
Google interview process usually has 2-3 rounds. The most common rounds in the Google interview process are Coding Test, Technical and HR.
How to prepare for Google Software Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Google. The most common topics and skills that interviewers at Google expect are C++, Java, Javascript, Python and Clinical SAS Programming.
What are the top questions asked in Google Software Developer interview?

Some of the top questions asked at the Google Software Developer interview -

  1. There are three rooms, and there are Princess, Flowers and Snake in those rooms...read more
  2. Image data structure: An image(square image) can be stored as a tree: A node is...read more
  3. Say you have three tables WORK, USERS, MANAGERS WORK - work_id - user_id - how_...read more
How long is the Google Software Developer interview process?

The duration of Google Software Developer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

4.3/5

based on 121 interview experiences

Difficulty level

Easy 10%
Moderate 49%
Hard 41%

Duration

Less than 2 weeks 52%
2-4 weeks 24%
4-6 weeks 8%
More than 8 weeks 16%
View more
Google Software Developer Salary
based on 2.1k salaries
₹33.2 L/yr - ₹61.9 L/yr
344% more than the average Software Developer Salary in India
View more details

Google Software Developer Reviews and Ratings

based on 141 reviews

4.5/5

Rating in categories

4.5

Skill development

4.5

Work-life balance

4.5

Salary

4.4

Job security

4.5

Company culture

4.4

Promotions

4.5

Work satisfaction

Explore 141 Reviews and Ratings
Software Engineer
3k salaries
unlock blur

₹33 L/yr - ₹65 L/yr

Software Developer
2.1k salaries
unlock blur

₹33.2 L/yr - ₹61.6 L/yr

Senior Software Engineer
1.2k salaries
unlock blur

₹35.9 L/yr - ₹70 L/yr

Sde1
398 salaries
unlock blur

₹32.6 L/yr - ₹60 L/yr

Data Scientist
379 salaries
unlock blur

₹26.8 L/yr - ₹50 L/yr

Explore more salaries
Compare Google with

Yahoo

4.6
Compare

Amazon

4.0
Compare

Facebook

4.3
Compare

Microsoft Corporation

3.9
Compare
write
Share an Interview