Upload Button Icon Add office photos

Google

Compare button icon Compare button icon Compare

Filter interviews by

Google Software Developer Intern Interview Questions and Answers

Updated 6 Oct 2024

29 Interview questions

A Software Developer Intern was asked
Q. What does a software developer intern do?
Ans. 

A software intern developer is a student or recent graduate who works on software development projects under the guidance of experienced developers.

  • Assists in coding, testing, and debugging software applications

  • Learns new programming languages and technologies

  • Participates in team meetings and contributes to project discussions

A Software Developer Intern was asked
Q. 

Majority Element - II Problem Statement

Given an array/list ARR of integers with length 'N', identify all elements that appear more than floor(N/3) times within the array/list.

Input:

T (number of test c...
Ans. 

Identify elements in an array that appear more than floor(N/3) times using efficient counting methods.

  • Use a HashMap to count occurrences of each element in the array.

  • Calculate the threshold as floor(N/3) to determine majority elements.

  • Iterate through the HashMap to collect elements that exceed the threshold.

  • Example: For array [3, 2, 3], floor(3/3) = 1, so 3 is a majority element.

  • Example: For array [1, 1, 2, 2, 3, ...

Software Developer Intern Interview Questions Asked at Other Companies

Q1. Sum of Maximum and Minimum Elements Problem Statement Given an ar ... read more
asked in Amazon
Q2. Fish Eater Problem Statement In a river where water flows from le ... read more
asked in Apple
Q3. Kevin and his Fruits Problem Statement Kevin has 'N' buckets, eac ... read more
asked in CommVault
Q4. Sliding Maximum Problem Statement Given an array of integers ARR ... read more
Q5. Reverse Words in a String: Problem Statement You are given a stri ... read more
A Software Developer Intern was asked
Q. 

Consecutive Elements

Given an array arr of N non-negative integers, determine whether the array consists of consecutive numbers. Return true if they do, and false otherwise.

Input:

The first line of inpu...
Ans. 

Determine if an array of non-negative integers contains consecutive numbers.

  • Consecutive Numbers: An array is consecutive if it contains all integers from the minimum to the maximum value without any gaps.

  • Unique Elements: The array must have unique elements; duplicates would invalidate the consecutive condition.

  • Range Check: The difference between the maximum and minimum values should equal N-1, where N is the numbe...

A Software Developer Intern was asked
Q. 

Minimum Removals Problem Statement

Given an integer array ARR of size N and an integer K, determine the minimum number of elements that need to be removed so that the difference between the maximum and min...

Ans. 

Determine the minimum removals from an array to ensure the max-min difference is ≤ K.

  • Sort the array: Sorting helps in easily finding the maximum and minimum elements in any subarray.

  • Two-pointer technique: Use two pointers to find the largest subarray where the difference between max and min is ≤ K.

  • Calculate removals: The minimum removals will be the total elements minus the size of the valid subarray.

  • Example: For ...

A Software Developer Intern was asked
Q. 

Delete Leaf Nodes with Value X

Given a binary tree where each node contains an integer value, and an integer X, your task is to delete all leaf nodes that have the value X. Continue to remove newly formed ...

Ans. 

Delete all leaf nodes with value X in a binary tree until no such leaves exist.

  • Traverse the tree in postorder fashion to delete leaf nodes with value X

  • Recursively call the function on left and right subtrees

  • Update the root of the tree after removing leaf nodes with value X

A Software Developer Intern was asked
Q. 

Ninja and the Bulbs Challenge

Ninja owns an electronic shop and possesses 'N' bulbs. To verify the quality of the bulbs, Ninja performs a unique technique. After 'N' rounds of this process, bulbs that rema...

Ans. 

Determine the number of good quality bulbs remaining after 'N' rounds of a unique technique.

  • In each round, bulbs are toggled based on their position (e.g. every second bulb, every third bulb, etc.)

  • At the end of 'N' rounds, count the bulbs that remain on to determine the number of good quality bulbs.

  • Example: For N = 4, bulbs 1 and 4 remain on, so the output is 2.

A Software Developer Intern was asked
Q. 

Maximum Sum Path from Leaf to Root Problem

You are tasked with finding the path from a leaf node to the root node in a binary tree, such that this path has the maximum sum among all root-to-leaf paths.

In...

Ans. 

Find the path from a leaf node to the root node in a binary tree with the maximum sum.

  • Traverse the binary tree from leaf to root while keeping track of the sum along the path.

  • Compare the sums of all root-to-leaf paths and return the path with the maximum sum.

  • Use recursion to traverse the tree efficiently and update the sum as you go.

  • Consider edge cases like null nodes and negative values in the tree.

Are these interview questions helpful?
🔥 Asked by recruiter 2 times
A Software Developer Intern was asked
Q. 

Distance Between Two Nodes in a Binary Tree

Given a binary tree and the values of two distinct nodes, determine the distance between these two nodes in the tree. The distance is defined as the minimum numb...

Ans. 

Calculate the distance between two nodes in a binary tree.

  • Traverse the tree to find the paths from the root to each node

  • Find the lowest common ancestor of the two nodes

  • Calculate the distance by adding the distances from the LCA to each node

  • Return -1 if either node is not present in the tree

A Software Developer Intern was asked
Q. 

Maximum Time Problem Statement

You are given a string that represents time in the format hh:mm. Some of the digits are blank (represented by ‘?’). Your task is to fill in ‘?’ such that the time represented...

Ans. 

Given a string representing time with some digits as '?', fill in '?' to get maximum time.

  • Iterate through each digit of the input string and replace '?' with the maximum possible digit based on the position.

  • For the first digit (hours), if it is '?', replace it with '2' if the second digit is also '?', else replace it with '1'.

  • For the second digit (hours), if it is '?', replace it with '3' if the first digit is '2'...

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

Count Ways to Reach the N-th Stair Problem Statement

You are provided with a number of stairs, and initially, you are located at the 0th stair. You need to reach the Nth stair, and you can climb one or two...

Ans. 

The problem involves finding the number of distinct ways to climb N stairs by taking 1 or 2 steps at a time.

  • Use dynamic programming to solve the problem efficiently.

  • The number of ways to reach the Nth stair is the sum of the number of ways to reach the (N-1)th stair and the (N-2)th stair.

  • Handle base cases for N=0 and N=1 separately.

  • Consider using modulo operation to avoid overflow for large values of N.

Google Software Developer Intern Interview Experiences

15 interviews found

Interview experience
2
Poor
Difficulty level
-
Process Duration
-
Result
Not Selected
Round 1 - Coding Test 

Dsa mostly from arrays,trees.

Round 2 - HR 

(2 Questions)

  • Q1. Intro of the candidate
  • Q2. What Do iKnow that is not written in my resume.

Interview Preparation Tips

Interview preparation tips for other job seekers - Be yourself and be confident.

Software Developer Intern Interview Questions & Answers

user image Lakshmi prasanna Kusumanchi

posted on 6 Oct 2024

Interview experience
2
Poor
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Don’t add your photo or details such as gender, age, and address in your resume. These details do not add any value.
View all tips
Round 2 - Coding Test 

Asked single que which is dp

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

Topics : Trees, graphs

Round 2 - Technical 

(1 Question)

  • Q1. Related to dsa topics like trees, graphs and DP
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via LinkedIn and was interviewed in Jul 2023. There were 2 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(3 Questions)

  • Q1. I dont remember
  • Q2. Trees based question
  • Q3. Palindromic subsequence based
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Approached by Company and was interviewed before Jun 2023. There were 2 interview rounds.

Round 1 - HR 

(1 Question)

  • Q1. Brief introduction
Round 2 - Coding Test 

Two coding questions to be done

Interview Preparation Tips

Topics to prepare for Google Software Developer Intern interview:
  • DSA
  • Database
Interview experience
5
Excellent
Difficulty level
Hard
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Approached by Company and was interviewed before Jan 2023. There were 3 interview rounds.

Round 1 - Coding Test 

Swap two numbers with any of the language

Round 2 - Group Discussion 

Discuss about your family members

Round 3 - Technical 

(1 Question)

  • Q1. What is software intern developer
  • Ans. 

    A software intern developer is a student or recent graduate who works on software development projects under the guidance of experienced developers.

    • Assists in coding, testing, and debugging software applications

    • Learns new programming languages and technologies

    • Participates in team meetings and contributes to project discussions

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Hard
Process Duration
6-8 weeks
Result
Not Selected

I appeared for an interview before May 2023.

Round 1 - Coding Test 

Array string questions

Round 2 - Technical 

(2 Questions)

  • Q1. Graphs circles and radius question
  • Q2. Array some operations on array

Interview Preparation Tips

Interview preparation tips for other job seekers - Focus on dsa

I appeared for an interview in Feb 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Easy

  • Q1. 

    Minimum Time To Solve The Problems

    Given 'N' subjects, each containing a certain number of problems, and 'K' friends, assign subjects to friends such that each subject goes to exactly one friend, maintain...

  • Ans. 

    Assign subjects to friends to minimize maximum workload, find minimum time for most loaded friend.

    • Sort subjects in descending order

    • Assign subjects to friends one by one until all subjects are assigned

    • The maximum workload will be the sum of problems assigned to the friend with the most problems

    • Return the maximum workload as the minimum time required

  • Answered by AI
  • Q2. 

    Sum of Bit Difference Among All Pairs Problem Statement

    Given an array of integers, determine the sum of bit differences among all possible pairs that can be formed using the elements of the array.

    The b...

  • Ans. 

    Calculate sum of bit differences among all pairs in an array of integers.

    • Iterate through all pairs of elements in the array

    • Convert each pair of elements to binary representation

    • Count the differing bits in the binary representations

    • Sum up the differing bits for all pairs to get the final result

  • Answered by AI
Round 2 - Coding Test 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

  • Q1. 

    Sum of LCM Problem Statement

    Given an integer 'N', calculate and print the sum of the least common multiples (LCM) for each integer from 1 to N with N.

    The sum is represented as:
    LCM(1, N) + LCM(2, N) + ....

  • Ans. 

    Calculate and print the sum of least common multiples (LCM) for each integer from 1 to N with N.

    • Iterate from 1 to N and calculate LCM of each number with N

    • Sum up all the calculated LCMs to get the final result

    • Implement a function to calculate LCM of two numbers

  • Answered by AI
  • Q2. 

    Sudoku Solver

    Given a 9x9 Sudoku board, your task is to fill the empty slots and return the completed Sudoku solution.

    A Sudoku is a grid composed of nine 3x3 smaller grids. The challenge is to fill in the...

  • Ans. 

    Implement a Sudoku solver for a 9x9 grid with constraints on row, column, and 3x3 grid.

    • Create a recursive function to solve the Sudoku puzzle by trying out different numbers in empty slots.

    • Use backtracking to backtrack and try different numbers if a conflict is encountered.

    • Ensure each number appears only once in each row, column, and 3x3 grid.

    • Implement a function to check if a number can be placed in a particular posit...

  • Answered by AI
Round 3 - Video Call 

(1 Question)

Round duration - 60 minutes
Round difficulty - Hard

  • Q1. 

    Problem Statement: Delete Node In A Linked List

    Given a singly linked list of integers and a reference to a node, your task is to delete that specific node from the linked list. Each node in the linked li...

  • Ans. 

    Given a singly linked list of integers and a reference to a node, delete the specified node from the linked list.

    • Traverse the linked list to find the node to be deleted.

    • Update the pointers to skip over the node to be deleted.

    • Print the modified linked list after deletion.

    • Ensure the node to be deleted is not the tail node.

  • Answered by AI
Round 4 - Video Call 

(1 Question)

Round duration - 60 Minutes
Round difficulty - Easy

Timing was around 3 pm.

  • Q1. 

    Maximum Subarray Sum Problem Statement

    Given an array ARR consisting of N integers, your goal is to determine the maximum possible sum of a non-empty contiguous subarray within this array.

    Example of Sub...

  • Ans. 

    Find the maximum sum of a contiguous subarray within an array of integers.

    • Use Kadane's algorithm to find the maximum subarray sum efficiently.

    • Initialize two variables: maxEndingHere and maxSoFar.

    • Iterate through the array and update the variables accordingly.

    • Return the maxSoFar as the result.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in DelhiEligibility criterianoGoogle interview preparation:Topics to prepare for the interview - Confidence in Problem-Solving, Data Structures & Algorithms (PS/DS), Practice a few machine coding problems, Refine CS foundations notes, Fix common interview mistakes, Start coding a few problems on whiteboard or paper to get used to it.Time required to prepare for the interview - 8 MonthsInterview preparation tips for other job seekers

Tip 1 : Practice on white board 
Tip 2 : Spend daily some time 
Tip 3 : Practice previous questions

Application resume tips for other job seekers

Tip 1 : Resume should be short and neat
Tip 2 : Keep only thing in which you are sure you will answer all questions

Final outcome of the interviewRejected

Skills evaluated in this interview

I appeared for an interview in Feb 2021.

Round 1 - Video Call 

(1 Question)

Round duration - 30 minutes
Round difficulty - Medium

This round was to test if Google should spend time in interviewing me or not. I was asked around 8 questions that any coder must know, like time complexities of various algorithms, basic understanding of trees and graphs, some concepts specific to the chosen language etc. Apart from these, there was a question to test my mental arithmetic that can be important for system design interviews.
This round went pretty well for me and I moved to the next Round.

  • Q1. 

    Validate BST Problem Statement

    Given a binary tree with N nodes, determine whether the tree is a Binary Search Tree (BST). If it is a BST, return true; otherwise, return false.

    A binary search tree (BST)...

  • Ans. 

    Validate if a binary tree is a Binary Search Tree (BST) based on given properties.

    • Check if the left subtree of a node contains only nodes with data less than the node's data.

    • Verify if the right subtree of a node contains only nodes with data greater than the node's data.

    • Ensure that both the left and right subtrees are also binary search trees.

    • Traverse the tree in level order form to validate the BST properties.

    • Return t...

  • Answered by AI
Round 2 - Video Call 

(1 Question)

Round duration - 45 minutes
Round difficulty - Hard

This round was to test my coding aptitude. It was a 45 minutes round and I was asked 2 questions. One of the questions was based on Dynamic Programming and the other question was on Arrays that involved usage of Heaps. I was able to approach both the problems but could code only one due to time constraints. The interviewer was pretty friendly and quite helping. She guided me wherever I went wrong.

  • Q1. 

    Ways To Make Coin Change

    Given an infinite supply of coins of varying denominations, determine the total number of ways to make change for a specified value using these coins. If it's not possible to make...

  • Ans. 

    The task is to find the total number of ways to make change for a specified value using given denominations.

    • Use dynamic programming to solve this problem efficiently.

    • Create a 2D array to store the number of ways to make change for each value up to the specified value.

    • Initialize the array with base cases and then iterate through the denominations to fill up the array.

    • The final answer will be in the last cell of the arra...

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Malaviya National Institute of Technology Jaipur. I applied for the job as SDE - Intern in HyderabadEligibility criteriaI feel linkedin profile should be goodGoogle interview preparation:Topics to prepare for the interview - DSA, arrays, dynamic programming, system design, graphs, treesTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Regular practice on online platforms
Tip 2 : Must do questions from geeksforgeeks.org are very helpful
Tip 3 : Experience in some team projects is a plus point

Application resume tips for other job seekers

Tip 1 : Mention good projects in resume
Tip 2 : Team projects will help a lot

Final outcome of the interviewRejected

Skills evaluated in this interview

I appeared for an interview in Oct 2020.

Round 1 - Assignment 

(1 Question)

Round duration - 60 minutes
Round difficulty - Medium

  • Q1. 

    Min Steps to One Using Dynamic Programming

    Given a positive integer N, your task is to determine the minimum number of steps required to reduce N to 1.

    Allowed Operations:

    1) Subtract 1 from it: n = n -...
  • Ans. 

    Implement a function to find the minimum steps to reduce a positive integer to 1 using given operations.

    • Use dynamic programming to store the minimum steps for each number from 1 to N.

    • Iterate through each number from 1 to N and calculate the minimum steps based on the given operations.

    • Consider the cases where N is divisible by 2 or 3, and also when subtracting 1 is the only option.

    • Return the minimum steps required to re...

  • Answered by AI
Round 2 - Video Call 

(1 Question)

Round duration - 100 minutes
Round difficulty - Medium

My interview was held from 3 to 3:50 and 4 to 4:50 in the evening . I sat in a silent place of my room with no disturbances in my room. 
The interviewer first asked me to introduce myself then he did the same, he then gave me a problem of sliding window and we discussed to reach on a optimal solution then I wrote the code for it . Then he asked me to ask if I had any questions , I asked some questions regarding their work culture , what do they expect from me and what work will I be given there as an SDE -intern. Second interview was almost the same the problem was of dynamic programming .

  • Q1. 

    Sliding Window Maximum Problem Statement

    You are given an array/list of integers with length 'N'. A sliding window of size 'K' moves from the start to the end of the array. For each of the 'N'-'K'+1 possi...

  • Ans. 

    The problem involves finding the maximum element in each sliding window of size 'K' in an array of integers.

    • Use a deque to store indices of elements in the current window in decreasing order of their values.

    • Remove indices that are out of the current window from the front of the deque.

    • Add the maximum element (at the front of the deque) to the result for each window.

  • Answered by AI
Round 3 - Face to Face 

(1 Question)

Round duration - 50 minutes
Round difficulty - Medium

I have already given the description in the previous round.

  • Q1. 

    Remove K Corner Elements - Problem Statement

    Given an array "arr" consisting of "N" integer elements, your task is to remove "K" elements from the beginning or the end of the array. You must return the ma...

  • Ans. 

    Given an array, remove K elements from beginning or end to maximize sum of remaining elements.

    • Iterate through all possible combinations of removing K elements from beginning and end

    • Calculate sum of remaining elements for each combination

    • Return the maximum sum obtained

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Madan Mohan Malaviya University Of Technology. Eligibility criteriaProficient in a programming language and good knowledge of Data Structures and AlgorithmsGoogle interview preparation:Topics to prepare for the interview - Data Structures ,Dynamic Programming, Searching and sorting, Algorithms , StringsTime required to prepare for the interview - 2 monthsInterview preparation tips for other job seekers

Tip 1 : Solve as many questions and learn as many concepts as you can from gfg and leetcode.
Tip 2 : Solve the questions on notepad or notebook because there you won't get an editor to point out your mistakes.
Tip 3 : Submit your code when you are completely satisfied because there you won't get to run and debug your code.

Application resume tips for other job seekers

Tip 1 : Keep it 1 page short and catchy.
Tip 2 : Do not brag in your Resume your resume should be honest and should represent exactly what you are.

Final outcome of the interviewRejected

Skills evaluated in this interview

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 Intern interview?
Google interview process usually has 2-3 rounds. The most common rounds in the Google interview process are Coding Test, Technical and Resume Shortlist.
What are the top questions asked in Google Software Developer Intern interview?

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

  1. What is software intern develo...read more
  2. Related to dsa topics like trees, graphs and...read more
  3. Graphs circles and radius quest...read more

Tell us how to improve this page.

Overall Interview Experience Rating

3.9/5

based on 8 interview experiences

Difficulty level

Moderate 50%
Hard 50%

Duration

Less than 2 weeks 75%
6-8 weeks 25%
View more
Google Software Developer Intern Salary
based on 6 salaries
₹5.7 L/yr - ₹13.6 L/yr
61% more than the average Software Developer Intern Salary in India
View more details

Google Software Developer Intern Reviews and Ratings

based on 2 reviews

4.0/5

Rating in categories

5.0

Skill development

3.0

Work-life balance

3.0

Salary

4.0

Job security

4.9

Company culture

4.9

Promotions

4.0

Work satisfaction

Explore 2 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