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

SDE - Intern

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

Interview preparation journey

expand-icon
Journey
I was advised by my seniors to practice DSA from the very start of B.Tech, but I did not take that seriously. Honestly speaking, I regretted not taking their advice, and in the third year, I started coding and had to increase my practice hours because I started late. By the end of the third year, I was confident in both DSA and development, but even then, I kept revising the concepts.
Application story
Google visited my campus for the placement process. We just had to upload our resumes and fill in all the details in the form. After the online test, around 97 candidates were selected for interviews from the 800+ COE applicants.
Why selected/rejected for the role?
I was able to clear all the rounds. I think it was because I correctly answered almost all the questions, gave quick responses, had good projects listed on my resume, and had some knowledge about the company. I was able to impress the interviewer.
Preparation
Duration: 3 months
Topics: Data Structures and Algorithms problems with Trees, Graphs, stack etc. Basic System Designing. Database Management System and SQL queries. Operation System and Process Scheduling Techniques.
Tip
Tip

Tip 1: Make sure to solve the most recommended problems on coding platforms. Around 200 will do.  
Tip 2: Be confident with your basics from chapters on Operating Systems, DBMS, or SQL Queries.  
Tip 3: Have a basic knowledge of system design concepts.

Application process
Where: Campus
Eligibility: 7
Resume Tip
Resume tip

Tip 1: Make your resume properly readable. Keep it to one page. If it exceeds one page, try your best to include only the most important highlights. 

Tip 2: Put your most important achievements at the top, followed by the less important ones. You want the interviewer to see the most important ones first.

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 mins
Interview date10 Jun 2021
Coding problem3

There were 3 coding questions. Some string and pattern matching + some number theory problems were there.

1. Arithmetic Expression Evaluation

Moderate
30m average time
70% success
0/80
Asked in companies
AdobeFacebookMicrosoft

You are given a string ‘expression’ consists of characters ‘+’, ‘-’, ‘*’, ‘/’, ‘(‘, ‘)’ and ‘0’ to ‘9’, that represents an Arithmetic Expression in Infix Notation. Your task is to evaluate this Arithmetic Expression.

In Infix Notation, operators are written in-between their operands.

Note :
1. We consider the ‘/’ operator as the floor division.

2. Operators ‘*’ and ‘/’ expression has higher precedence over operators‘+’ and ‘-’ 

3. String expression always starts with ‘(‘ and ends with ‘)’.

4. It is guaranteed that ‘expression’ represents’ a valid expression in Infix notation.

5. It is guaranteed that there will be no case that requires division by 0.

6. No characters other than those mentioned above are present in the string. 

7. It is guaranteed that the operands and final result will fit in a 32-bit integer.
For example :
Consider string ‘expression’ = ‘((2+3)*(5/2))’. 
Then it’s value after evaluation will be ((5)*(2)) = 10. 
Problem approach

I used Stack data structure to solve this problem

Try solving now

2. Maximum Product Subarray

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

You are given an array “arr'' of integers. Your task is to find the contiguous subarray within the array which has the largest product of its elements. You have to report this maximum product.

An array c is a subarray of array d if c can be obtained from d by deletion of several elements from the beginning and several elements from the end.

For e.g.- The non-empty subarrays of an array [1,2,3] will be- [1],[2],[3],[1,2],[2,3],[1,2,3]. 
For Example:
If arr = {-3,4,5}.
All the possible non-empty contiguous subarrays of “arr” are {-3}, {4}, {5}, {-3,4}, {4,5} and {-3,4,5}.
The product of these subarrays are -3, 4, 5, -12, 20 and -60 respectively.
The maximum product is 20. Hence, the answer is 20.
Follow Up:
Can you solve this in linear time and constant space complexity?
Problem approach

DP technique.

Try solving now

3. Angle Between Hour Hand And Minute Hand

Easy
15m average time
85% success
0/40
Asked in companies
MicrosoftSalesforceAmazon

Given the time in hours and minutes, you need to calculate the angle between the hour hand and the minute hand.

Note :
There can be two angles between the hour hand and minute hand, you need to print a minimum of two. Also, print the floor value of angle i.e. if the angle is 15.2, you need to print 15.
Problem approach

Normal mathematical implementation.

Try solving now
02
Round
Easy
HR Round
Duration30 mins
Interview date10 Jun 2021
Coding problem1

1. HR Questions

Just a discussion about my candidature and what the team has to offer me. We discussed my interviews and my skills for the role. All of my interviews were held between 11 a.m. and 12 p.m. The interviewer was very friendly and ensured I was not getting anxious.

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
1370 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