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

SDE - 1

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

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming and Project work
Tip
Tip

Tip 1 : Practice questions regularly from leetcode, codestudio
Tip 2 : Participate in online contest to learn to solve questions under pressure
Tip 3 : Practice mock interviews before the actual interview

Application process
Where: Other
Eligibility: None
Resume Tip
Resume tip

Tip 1 : Have at least 2 good projects mentioned in your resume with a link
Tip 2 : Focus on skills, internships, projects, and experiences.
Tip 3 : Make it simple, crisp, and one page

Interview rounds

01
Round
Medium
Video Call
Duration60 Minutes
Interview date1 Jul 2022
Coding problem2

This is the technical round taken by the SDE at google.

1. Alien dictionary

Hard
46m average time
50% success
0/120
Asked in companies
AdobeFacebookInfo Edge India (Naukri.com)

You have been given a sorted (lexical order) dictionary of an alien language.


Write a function that returns the order of characters as a string in the alien language. This dictionary will be given to you as an array of strings called 'dictionary', of size 'N'.


Example :
If the dictionary consists of the following words:-
["caa", "aaa", "aab"], and 'K' is 3.

Then, the order of the alphabet is -
['c', 'a', 'b']
Note:
If the language consists of four letters, the four letters should be the starting four letters of the English language. 

However, their order might differ in the alien language.
Try solving now

2. Total Strings

Moderate
15m average time
86% success
0/80
Asked in companies
MicrosoftInnovaccerMathworks

You are given a positive integer 'N'. Your task is to find the number of strings of length ‘N’ that can be formed using only the characters ‘a’, ‘b’ and ‘c’. The strings formed should be such that the number of ‘b’ and ‘c’ in the string is at most 1 and 2, respectively.

Example:
Let’s say N = 2. The strings of length 2, which satisfy the given constraints are: “aa”, “ab”, “ac”, “ba”, “bc”, “ca”, “cb”, “cc”. Hence, the output is 8.
Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date4 Jul 2022
Coding problem1

This was the 2nd technical round in which data structure-based questions has been asked.

1. Count Subtrees

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

You have been given a Binary Search Tree (BST) of integer values and 2 integers 'LOW' and 'HIGH' denoting range ['LOW', 'HIGH'].

Your task is to return the count of nodes where all the nodes under that node (or subtree rooted with that node) lie in the given range.

A binary search tree (BST) is a binary tree data structure with the following properties.

• The left subtree of a node contains only nodes with data less than the node’s data.

• The right subtree of a node contains only nodes with data greater than the node’s data.

• Both the left and right subtrees must also be binary search trees.
Example:
Consider the following binary search tree. Suppose the given range is [ 15, 32 ] so we return ‘2’ as an answer as there are two nodes whose subtree is in the given range, the nodes are 20 and 30.

Example

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