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

SDE - 1

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

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, Java, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Practice Atleast 250 Questions from coding ninjas
Tip 2 : Do some good projects

Application process
Where: Other
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Have some good projects on resume.
Tip 2 : Do not put false things on resume and be confident about things on your resume.

Interview rounds

01
Round
Easy
Video Call
Duration40 minutes
Interview date20 Nov 2021
Coding problem1

The interview began with a brief exchange of introductions and then I was given the question. It was a coding question.

1. Binary Strings Without Consecutive 1's

Moderate
0/80
Asked in companies
MicrosoftMorgan StanleySnapdeal Ltd.

You are given an integer ‘N’, you need to find the count of binary strings of length equal to ‘N’ that do not contain consecutive 1’s. As the answer can be large, print its value modulo 10^9 + 7.

Follow up :
Can you try to solve this problem in O(N) time and O(1) space?
Example :
If ‘N’ = 3

Then there are 5 possible binary strings of length equal to 3 that do not contain consecutive 1’s: “000”, “001”, “010”, “100”, “101”.
Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date22 Nov 2021
Coding problem1

60 minutes coding round with 1 coding question and 15 mins GNL round

1. Detect Cycle in a Directed Graph

Moderate
25m average time
65% success
0/80
Asked in companies
AmazonAmerican ExpressOYO

Given a directed graph, check whether the graph contains a cycle or not. Your function should return true if the given graph contains at least one cycle, else return false.

Problem approach

My approach was considering all variables as nodes of the graph and then drawing an edge from vertex u to v if u>v and output will be false if a cycle is present in the graph.

Topological sort of DFS can be used to detect cycles in directed graphs.

Try solving now
03
Round
Hard
Video Call
Duration90 minutes
Interview date25 Nov 2021
Coding problem1

He first introduced himself and then asked me to introduce myself, Then he moved to the coding problem

1. N-ary tree Level Order Traversal

Moderate
20m average time
80% success
0/80
Asked in companies
AmazonLinkedInArgano

You are given an N-ary tree where every node has at most ‘N’ child nodes. You need to find the level order traversal of this tree

Note:
Note that the level order traversal must not contain any null values, simply return the tree in level order.
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 | 2 problems
Interviewed by Google inc
3700 views
1 comments
0 upvotes
company logo
SDE - 1
1 rounds | 1 problems
Interviewed by Google inc
1574 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