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

SDE - 1

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

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, Dynamic Programming, Algorithms, Recursion, Graphs
Tip
Tip

Tip 1 : Practise medium and hard on leetcode
Tip 2 : Give mock interviews

Application process
Where: Campus
Eligibility: 6 CGPA, Only circuital branches
Resume Tip
Resume tip

Tip 1 : Have at least 2 projects on resume
Tip 2 : Do at least 1 internship before placement

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date9 Jul 2022
Coding problem2

1. Split String

Easy
12m average time
80% success
0/40
Asked in company
Google inc

You are given a string 'S'. A string is called a split string if it follows the conditions define below.

1. It can be divided into 'K' contiguous substrings such that the first letter of these substrings is the same for all the substrings.
2. It can be divided into 'K' contiguous substrings such that the first letter of these substrings is distinct for all the substrings.

Return 1 if 'S' is a split string otherwise return 0.

For Example:-
Let 'N' = 6, 'K' = 2, 'S' = "pppdpa".
It can be divided into "pp" and "pdpa", the first letter of the strings is same.
It can be divided into "ppp" and "dpa", the first letter of the strings is distinct.
So our answer is 1. 
Try solving now

2. Pair count.

Moderate
0/80
Asked in companies
AmazonMathworksPayPal

You are given an array ‘ARR’, and a positive integer ‘K’. Your task is to count the total number of pairs whose sum is divisible by ‘K’.

For example:
You are given, ‘ARR’ =[4, 3, 5, 1, 4, 5], and ‘K’ = 5.  In the given array the pair sums divisible by ‘K’ are [4,1], [5, 5], [4, 1]. Since there are a total of 3 pairs, the answer is 3.
Try solving now
02
Round
Medium
Video Call
Duration45 Minutes
Interview date1 Aug 2022
Coding problem1

1. Guess Price

Easy
10m average time
63% success
0/40
Asked in companies
Expedia GroupZSWipro infotech

Your friends gifted you a lot of things on your birthday, and now it's your turn to give some return gifts to them. You went to a gift store and decided to buy some Binary Search Trees (BST).

There is no salesperson in the store. So you are supposed to guess the price of a given BST, which is the minimum value in its nodes.

Try solving now
03
Round
Medium
Video Call
Duration45 Minutes
Interview date1 Aug 2022
Coding problem1

1. Longest Increasing Path In A 2D Matrix

Hard
10m average time
90% success
0/120
Asked in companies
PhonePeSamsungFacebook

You have been given a MATRIX of non-negative integers of size N x M where 'N' and 'M' denote the number of rows and columns, respectively.

Your task is to find the length of the longest increasing path when you can move to either four directions: left, right, up or down from each cell. Moving diagonally or outside the boundary is not allowed.

Note: A sequence of integers is said to form an increasing path in the matrix if the integers when traversed along the allowed directions can be arranged in strictly increasing order. The length of an increasing path is the number of integers in that path.

For example :

3 2 2
5 6 6
9 5 11 

In the given matrix, 3 →  5 →  6 and 3 →  5 →  9 form increasing paths of length 3 each.
Try solving now
04
Round
Medium
Video Call
Duration45 minutes
Interview date1 Aug 2022
Coding problem1

1. Largest sub-tree sum

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

You have been given a Binary Tree of integers. You are supposed to return the largest subtree sum in the given Binary Tree.

The subtree sum of a node is defined as the sum of all the node values formed by the subtree rooted at that node (including the node itself).

Example :
For the given binary tree:

Example

Subtree with the largest sum is highlighted in the above image. The sum is (-2 + 4 + 7) = 9
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 - 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