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

SDE - 1

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

Interview preparation journey

expand-icon
Preparation
Duration: 6 months( overall prep)
Topics: Data Structures, OOPS, System Design, DBMS
Tip
Tip

Tip 1 : Solve all standard DSA problems
Tip 2 : Prepare for System Design as for AE role Google take one SD round interview
Tip 3 : Competitive Programming will help to clear Google OA

Application process
Where: Campus
Eligibility: Only Circuital branch students were allowed in my college.
Resume Tip
Resume tip

Tip 1 : Good to have 2 decent projects
Tip 2 : Good Coding profiles help as well

Interview rounds

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

The first round was an online Assessment round of one hour in which 2 DSA (both were hard) was asked.
 

1. Non-Overlapping Substrings

Hard
0/120
Asked in companies
AmazonInspirisysGoogle inc

You are given a string “str”. Find the maximum number of non-empty substrings of “str” such that no two substrings overlap with each other and each substring that you select containing a letter ‘t’ must contain all the occurrences of ‘t’ in that substring.

A string ‘a’ is a substring of a string ‘b’ if ‘a’ can be obtained from ‘b’ by deletion of several (possibly, zero or all) characters from the beginning and several (possibly, zero or all) characters from the end.

Note:
If there are multiple solutions of a string, return the string with minimum total length.
For Example :
Let str = abaccce

Now In this example, we can make a maximum of three substrings i.e. {‘b’, ‘ccc’, ‘e’}.

Note:

There can be one more solution with maximum substrings equal to three i.e. {‘aba’, ‘ccc’, ‘e’} but we have to select the substrings with minimum total length. So the final answer is  {‘b’, ‘ccc’, ‘e’}.
Try solving now

2. Find Permutation

Moderate
25m average time
65% success
0/80
Asked in companies
Goldman SachsOlaFacebook

You are given an integer ‘N’. You need to find an array of size 2*N that satisfies the following two conditions.

1. All numbers from 1 to N should appear exactly twice in the array.

2. The distance between the second occurrence and the first occurrence of any number should exactly be equal to the value of that number.

The distance between two numbers at indices ‘i’ and ‘j’ is defined as (j-i-1) where i < j.

If no such array exists, then you should return an empty array.

For example :
For N = 3 one valid array is [3,1,2,1,3,2].
Try solving now
02
Round
Medium
Face to Face
Duration45 minutes
Interview date7 Aug 2021
Coding problem1

The first interview round was DSA and I was asked one medium DSA question (45 mins)

1. Word Search - ll

Moderate
30m average time
50% success
0/80
Asked in companies
SamsungUberOYO

You are given a two-dimensional grid having 'N' rows and 'M' columns, consisting of upper case characters. You are also given a word 'WORD'. You have to find the number of occurrences of that word in the grid.

Starting from a given cell, a word can be formed by moving in all eight directions: horizontally left, horizontally right, vertically up, vertically down, and four diagonal directions.

Example :
There are three occurrences of the word 'NINJA' in the following grid:

word_grid

Note :
1) Given word will not be a single character.

2) If occurrences of the given word start from two different cells, then these two occurrences are considered to be different.

Consider the word 'XYX' to be searched in the string 'AXYXB'. Here, we find an occurrence of 'XYX' at index 2 going in the right direction, and another occurrence at index 4 going in the left direction.

Although these two words correspond to the same word, they will be considered as different occurrences.
Try solving now
03
Round
Medium
Face to Face
Duration45 minutes
Interview date8 Aug 2021
Coding problem1

After the introduction, He asked me to design a flight booking system. It was more like a discussion round. We first discussed the low-level design and He asked me to write the class structure of some components then He asked me some questions regarding APIs and Finally some questions regarding High-level Design.
I struggled on a few occasions in this round but communication helped me to fix the mistakes.

1. System Design Question

Design a flight booking system (low level + High level)

Problem approach

Tip 1 : Understand the functionalities and use case
Tip 2 : Discuss the approach and focus the interviewer's inputs
Tip 3 : Keep the design simple

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 - 1
1 rounds | 1 problems
Interviewed by Google inc
6180 views
0 comments
0 upvotes
company logo
SDE - 1
1 rounds | 1 problems
Interviewed by Google inc
1573 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by Google inc
0 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by Google inc
0 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes