Google inc interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Google inc
upvote
share-icon
4 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 8 Months
Topics: 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.
Tip
Tip

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

Application process
Where: Other
Eligibility: no
Resume Tip
Resume tip

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

Interview rounds

01
Round
Easy
Online Coding Test
Duration60 minutes
Interview date14 Jan 2021
Coding problem2

1. Minimum Time To Solve The Problems

Hard
50m average time
50% success
0/120
Asked in companies
QuikrBarclaysSprinklr

There are 'N' number of subjects and the ith subject contains subject[i] number of problems. Each problem takes 1 unit of time to be solved. Also, you have 'K' friends, and you want to assign the subjects to each friend such that each subject is assigned to exactly one friend. Also, the assignment of subjects should be contiguous. Your task is to calculate the maximum number of problems allocated to a friend is minimum. See example for more understanding.

For Example:
If N = 4, K = 2 and subjects = {50,100,300,400}
Assignment of problems can be done in the following ways among the two friends.
{} and {50,100,300,400}. Time required = max(0, 50+100+300+400) = max(0, 850) = 850
{50} and {100,300,400}. Time required = max(50, 100+300+400) = max(50, 800) = 800
{50, 100} and {300,400}. Time required = max(50+100, 300+400) = max(150, 700) = 700
{50,100,300} and {400}. Time required = max(50+100+300, 400) = max(450, 400) = 400
{50,100,300, 400} and {}. Time required = max(50+100+300+400, 0) = max(850, 0) = 850

So, out of all the above following ways, 400 is the lowest possible time.
Try solving now

2. Sum of Bit Difference Among all Pairs

Easy
15m average time
85% success
0/40
Asked in company
Google inc

Given an array of size ‘N’ containing integer elements and let the elements of the given array be 'ARR1', 'ARR2',…..,' ARRN'. You need to find the sum of bit differences among all the pairs that can be formed using the given array elements.

Bit difference of a pair ('ARRi', 'ARRj') is the number of different bits in the numbers’ binary representation. For example, the bit difference of (3,5) is 2. The binary representation of 3 is 011, and of 5 is 101.

Note:
1. If ('ARRi', 'ARRj') is a pair, then ('ARRj', 'ARRi') will also be considered as a pair.
2. Both positive and negative numbers may be present.
3. Don't ignore the negative sign of the number. 
Try solving now
02
Round
Medium
Online Coding Test
Duration60 minutes
Interview date30 Jan 2021
Coding problem2

1. Sum of LCM

Moderate
15m average time
90% success
0/80
Asked in companies
GrofersMr. CooperGoogle inc

You are given an integer ‘N’ , calculate and print the sum of :

LCM(1,N) + LCM(2,N) + .. + LCM(N,N) 

where LCM(i,n) denotes the Least Common Multiple of the integers ‘i’ and ‘N’.

Try solving now

2. Sudoku

Easy
0/40
Asked in companies
SalesforceMakeMyTripProvidence Global Center LLP

You are given a 9x9 sudoku. Your task is to solve sudoku and return the solution.

A sudoku is a puzzle in which players insert the numbers one to nine into a grid consisting of nine squares subdivided into a further nine smaller squares in such a way that every number appears once in each horizontal line, vertical line, and square.

For example: Consider following sudoku:

example1

To solve it you have to fill blank spaces by numbers from 1 to 9 subject to constraints:

Any number should not occur more than once per row.

Any number should not occur more than once per column.

Any number should not occur more than once per block of 3x3(here, each block is distinguished by bold borders).

It will be solved as:

example1

Try solving now
03
Round
Hard
Video Call
Duration60 minutes
Interview date5 Feb 2021
Coding problem2

1. Delete Node In A Linked List

Easy
15m average time
80% success
0/40
Asked in companies
AdobeCIS - Cyber InfrastructureDell Technologies

You are given a Singly Linked List of integers and a reference to the node to be deleted. Every node of the Linked List has a unique value written on it. Your task is to delete that node from the linked list.

A singly linked list is a linear data structure in which we can traverse only in one direction i.e. from Head to Tail. It consists of several nodes where each node contains some data and a reference to the next node.

Note:

• The reference to the head of the linked list is not given.
• The node to be deleted is not a tail node.
• The value of each node in the Linked List is unique.
• It is guaranteed that the node to be deleted is present in the linked list.

A sample Linked List-

singly_linkedlist

Try solving now

2. Aptitude Question

Alok has three daughters. His friend Shyam wants to know the ages of his daughters. Alok gives him first hint.

1) The product of their ages is 72.

Shyam says this is not enough information Alok gives him a second hint.

2) The sum of their ages is equal to my house number.

Shyam goes out and look at the house number and tells “I still do not have enough information to determine the ages”.




Alok admits that Shyam can not guess and gives him the third hint

3) The oldest of the girls likes strawberry ice-cream.

Shyam is able to guess after the third hint. Can you guess what are the ages of three daughters?

04
Round
Easy
Video Call
Duration60
Interview date20 Feb 2021
Coding problem2

Timing was around 3 pm.

1. Maximum Subarray Sum

Moderate
0/80
Asked in companies
IntuitAmazonOracle

You are given an array/list ARR consisting of N integers. Your task is to find the maximum possible sum of a non-empty subarray(contiguous) of this array.

Note: An array C is a subarray of array D if it can be obtained by deletion of several elements(possibly zero) from the beginning and the end of array D.

For e.g.- All the non-empty subarrays of array [1,2,3] are [1], [2], [3], [1,2], [2,3], [1,2,3].

Try solving now

2. Technical Questions

1) What are the different types of scaling?

2) Few SQL Queries 

  • 1) Getting top salary for a department
  • 2) Queries based on Joins

3) Virtual Memory 

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Google inc
3050 views
3 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Google inc
1465 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Google inc
1280 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Google inc
1371 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15606 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15500 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes