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

SDE - Intern

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

Interview preparation journey

expand-icon
Preparation
Duration: 7-8 months
Topics: Data Structures, Algorithms, Dynamic Programming, Trees, Operating System
Tip
Tip

Tip 1 : Practice as much you can
Tip 2 : Study Data Structures
Tip 3 : Be confident

Application process
Where: Other
Eligibility: Must be enrolled in a Bachelor's degree
Resume Tip
Resume tip

Tip 1 : Mention only what you are confident about
Tip 2 : Mention tools & technologies used in the project as well

Interview rounds

01
Round
Easy
Online Coding Interview
Duration45 minutes
Interview date11 Aug 2020
Coding problem2

Timing : Evening

1. Distance between two nodes of a Tree

Moderate
25m average time
60% success
0/80
Asked in companies
PhilipsSAP LabsPhonePe

Given a binary tree and the value of two nodes, find the distance between the given two nodes of the Binary Tree.

Distance between two nodes is defined as the minimum number of edges in the path from one node to another.

Try solving now

2. Delete Leaf Nodes with Value X

Moderate
27m average time
0/80
Asked in companies
MicrosoftDunzoSprinklr

You are given a binary tree, in which the data present in the nodes are integers. You are also given an integer X.

Your task is to delete all the leaf nodes with value X. In the process, if the newly formed leaves also have value X, you have to delete them too.

For example:

For the given binary tree, and X = 3:

tree

Try solving now
02
Round
Easy
Video Call
Duration45 minutes
Interview date24 Sep 2020
Coding problem1

Timing : 10:00 pm

1. Maximum sum path from the leaf to root

Easy
10m average time
90% success
0/40
Asked in companies
OYOSprinklrSamsung

You are given a binary tree of 'N' nodes.

Your task is to find the path from the leaf node to the root node which has the maximum path sum among all the root to leaf paths.

For Example:

sample tree

All the possible root to leaf paths are:
3, 4, -2, 4 with sum 9
5, 3, 4 with sum 12
6, 3, 4 with sum 13
Here, the maximum sum is 13. Thus, the output path will be 6, 3, 4.

Note:

There will be only 1 path with max sum.
Try solving now
03
Round
Easy
Video Call
Duration45 minutes
Interview date24 Sep 2020
Coding problem1

Timimg : 11:00 pm

1. Ninja and the bulbs

Moderate
25m average time
75% success
0/80
Asked in companies
UberAmazonGoogle inc

Ninja owns an electronic shop. In the shop, Ninja has 'N' bulbs. To sell these bulbs, Ninja has to check if they are of good quality. To check bulbs, Ninja uses a unique technique.

In this technique, in the first round he, turn on all the bulbs, then in the second round, he turns off every second bulb then in the third round, he chooses every third bulb and turns off it is on, or turn on if it is off and so no. He repeats this process 'N' times.

The number of bulbs that are on after the end of 'N' rounds are of good quality. Your task is to help Ninja in finding the number of good bulbs.

Example
Let 'N' = 4

Then in the first round, all bulbs are on.

In the second round bulbs, 2 and 4 are turned off.

In the third round bulb, 3 is turned off.

In the fourth round bulb, 4 is turned on.

So at the end of 'N' (4) round, only the bulb 1 and 4 is on, so there are 2 good bulbs.
Try solving now

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
3049 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
1279 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Google inc
1370 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15605 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15499 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes